2016-09-06 01:46:36 +10:00
|
|
|
object @media
|
2016-09-18 01:47:26 +10:00
|
|
|
attribute :id, :type
|
2016-09-06 01:46:36 +10:00
|
|
|
node(:url) { |media| full_asset_url(media.file.url) }
|
2016-09-08 02:17:15 +10:00
|
|
|
node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }
|
2016-09-18 01:47:26 +10:00
|
|
|
node(:text_url) { |media| medium_url(media) }
|