thoughtbot/paperclip — pull request #983 by adamtrilling (2012-08-05 02:39:48+00:00)
Title: API change in rails master breaks paperclip

Any model save involving a paperclip field in rails master results in the following exception:

wrong number of arguments (2 for 1)

vendor/bundle/ruby/1.9.1/bundler/gems/rails-c5807728d52c/activesupport/lib/active_support/callbacks.rb:73:in `run_callbacks'
vendor/bundle/ruby/1.9.1/gems/paperclip-3.1.4/lib/paperclip/callbacks.rb:26:in `run_paperclip_callbacks'
...

From those two files, it's pretty obvious what happened: the run_callbacks method used to take two arguments and now it only takes one. I did some grepping and it doesn't look like paperclip was using the second argument, so I removed it, and now my models work.

I don't know a whole lot about the internals of paperclip, so feel free to reject this if I horribly broke everything.