2010-06-30 13:18:17 +00:00
|
|
|
module CarrierWave
|
|
|
|
module Uploader
|
|
|
|
class Base
|
|
|
|
|
|
|
|
def to_liquid
|
|
|
|
{
|
|
|
|
:url => self.url,
|
2010-07-06 00:05:47 +00:00
|
|
|
:filename => (File.basename(self.url) rescue ''),
|
2010-06-30 13:18:17 +00:00
|
|
|
:size => self.size
|
|
|
|
}.stringify_keys
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|