This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2016-11-03 05:28:36 -07:00
|
|
|
attributes :id, :remote_url, :type
|
|
|
|
|
2017-04-16 03:51:30 -07:00
|
|
|
node(:url) { |media| media.file.blank? ? media.remote_url : full_asset_url(media.file.url(:original)) }
|
|
|
|
node(:preview_url) { |media| media.file.blank? ? media.remote_url : full_asset_url(media.file.url(:small)) }
|
2017-02-05 06:25:55 -08:00
|
|
|
node(:text_url) { |media| media.local? ? medium_url(media) : nil }
|