profile.json.jbuilder now gets the pic_tiny url by variant
This commit is contained in:
parent
09170bcd89
commit
03a270b61b
1 changed files with 1 additions and 1 deletions
|
@ -3,4 +3,4 @@
|
|||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
json.extract! profile, :id, :name, :country, :picture
|
||||
json.url profile_path(profile)
|
||||
json.pic_tiny profile.picture_by_size(:tiny) if profile.picture.attached?
|
||||
json.pic_tiny url_for(profile.picture_by_size(:tiny)) if profile.picture.attached?
|
||||
|
|
Loading…
Reference in a new issue