lib/tori/rails.rb in tori-0.0.3 vs lib/tori/rails.rb in tori-0.0.4

- old
+ new

@@ -14,15 +14,15 @@ def tori(name) super after_save do file = __send__ name - Tori.config.backend.copy(file.from.path, file.to_s) if file.from && file.copy? + file.copy end after_destroy do file = __send__ name - Tori.config.backend.delete(file.to_s) if file.exist? + file.delete end end end end ::ActiveRecord::Base.extend(Tori::ActiveRecord)