Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 360 Bytes
class AssetDrop < BaseDrop
liquid_attributes.push(*[:content_type, :size, :filename, :width, :height, :title])
[:image, :movie, :audio, :other, :pdf].each do |content|
define_method("is_#{content}") { @source.send("#{content}?") }
end
def tags
@tags ||= liquify *@source.tags
end
def path
@path = @source.public_filename
end
end