You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
296 B

  1. attributes :id, :remote_url, :type
  2. node(:url) { |media| full_asset_url(media.file.url(:original)) }
  3. node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }
  4. node(:text_url) { |media| media.local? ? medium_url(media) : nil }
  5. node(:meta) { |media| media.file.meta }