lib/rails_uploads/storages/local.rb in rails_uploads-0.2.1 vs lib/rails_uploads/storages/local.rb in rails_uploads-0.2.2

- old
+ new

@@ -1,10 +1,10 @@ module RailsUploads module Storages class Local - def initialize(tmp) - @tmp = tmp + def initialize(default) + @tmp = (Rails.env == 'test' and not default) end def exists?(path) ::File.exists? realpath(path) end