Permalink
Browse files

Fixed deprecated terminator style warning

  • Loading branch information...
1 parent 8b5289b commit 34121da57b60a7b2e02234669731217a43c4f372 @jonahbron jonahbron committed with jyurek Dec 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip/callbacks.rb
@@ -7,7 +7,7 @@ def self.included(base)
module Defining
def define_paperclip_callbacks(*callbacks)
- define_callbacks(*[callbacks, {:terminator => "result == false"}].flatten)
+ define_callbacks(*[callbacks, {terminator: -> {result == false}}].flatten)
callbacks.each do |callback|
eval <<-end_callbacks
def before_#{callback}(*args, &blk)

0 comments on commit 34121da

Please sign in to comment.