lib/multi_encoder/storage/filesystem.rb in multi_encoder-0.0.5 vs lib/multi_encoder/storage/filesystem.rb in multi_encoder-0.0.6

- old
+ new

@@ -1,10 +1,12 @@ module MultiEncoder module Storage module FileSystem def url - file_path.to_s.gsub Rails.root.join('public').to_s, '' + if defined? Rails + file_path.to_s.gsub Rails.root.join('public').to_s, '' + end end def root defined?(Rails) ? Rails.root : Pathname.new('/tmp') end