Enable caching for some rabl views
This commit is contained in:
parent
aff22bfdb5
commit
0160d1d9b5
11 changed files with 38 additions and 32 deletions
4
app/views/api/v1/statuses/_media.rabl
Normal file
4
app/views/api/v1/statuses/_media.rabl
Normal file
|
@ -0,0 +1,4 @@
|
|||
attributes :id, :remote_url, :type
|
||||
|
||||
node(:url) { |media| full_asset_url(media.file.url) }
|
||||
node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }
|
Loading…
Add table
Add a link
Reference in a new issue