Module: Card::Set::Type::File::FileFormat

Extended by:
AbstractFormat
Included in:
Image::FileFormat
Defined in:
platypus/tmp/set/gem-defaults/mod016-carrierwave/type/file.rb

Instance Method Summary collapse

Instance Method Details

#view: coreObject

NOCACHE because returns send_file args. not in love with this…

[View source]

74
75
76
77
78
79
80
81
82
# File 'platypus/tmp/set/gem-defaults/mod016-carrierwave/type/file.rb', line 74

view :core, cache: :never do
  # this means we only support known formats.  dislike.
  attachment_format = card.attachment_format(params[:format])
  return _render_not_found unless attachment_format
  return card.format(:html).render_core if card.remote_storage?

  set_response_headers
  args_for_send_file
end