Displaying media attachments in timelines

This commit is contained in:
Eugen Rochko committed 2016-09-05 20:38:31 +02:00
1 parent 14fb0ab4a2
commit fc222dfa49
4 files changed
+37 -2

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ child :account do
end
child :media_attachments, object_root: false do
attribute :remote_url
attributes :id, :remote_url
node(:url) { |media| full_asset_url(media.file.url) }
node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }