engine/lib/locomotive/carrierwave/base.rb

15 lines
266 B
Ruby
Raw Normal View History

module CarrierWave
module Uploader
class Base
def to_liquid
{
:url => self.url,
:filename => (File.basename(self.url) rescue ''),
:size => self.size
}.stringify_keys
end
end
end
end