2010-06-30 13:18:17 +00:00
|
|
|
module CarrierWave
|
|
|
|
module Uploader
|
|
|
|
class Base
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2012-03-05 22:17:33 +00:00
|
|
|
def to_label
|
|
|
|
File.basename(self.to_s, File.extname(self.to_s))
|
|
|
|
end
|
|
|
|
|
2010-06-30 13:18:17 +00:00
|
|
|
def to_liquid
|
2012-03-02 00:46:02 +00:00
|
|
|
Locomotive::Liquid::Drops::Uploader.new(self)
|
2010-06-30 13:18:17 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-06-30 13:18:17 +00:00
|
|
|
end
|
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
end
|