Permalink
Browse files

Merge pull request #1106 from jviney/master

Fix use of run_callbacks in Rails 4

Rails 4 removed the second argument from `run_callback`.
  • Loading branch information...
2 parents a2728b3 + fec71cf commit 21adca118e82c06705e82e12d5cb337fef14051f @sikachu sikachu committed Dec 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/paperclip/callbacks.rb
@@ -22,8 +22,8 @@ def after_#{callback}(*args, &blk)
end
module Running
- def run_paperclip_callbacks(callback, opts = nil, &block)
- run_callbacks(callback, opts, &block)
+ def run_paperclip_callbacks(callback, &block)
+ run_callbacks(callback, &block)
end
end
end

0 comments on commit 21adca1

Please sign in to comment.