pothoven/attachment_fu — pull request #9 by corlissc (2014-09-11 18:04:09+00:00)
Title: Refactor DbFileBackend for Rails 4 AREL conformity

ActiveRecord#update_all was deprecated in Rails 2.3.8 and has since been replaced by ActiveRecord::Relation#update_all. With this change the method signature (accepted parameters) and usage have also changed requiring the refactoring.

Without the modification, users in later versions of Rails (myself in 4.1) with an ActiveRecord model wrapped by attachement_fu indicating the storage type of :db_file will receive a "wrong number of arguments (2 for 1)" error when attempting to save/persist the model.