Commit 4ee4fd3a by Kylan McBride Committed by Jon Yurek

Callbacks: Tweaked version check

parent 36a91fef
......@@ -23,7 +23,7 @@ module Paperclip
private
def callback_terminator
if Gem::Version.new(::Rails::VERSION::STRING) >= Gem::Version.new('4.1.0.beta')
if ::ActiveSupport::VERSION::STRING >= '4.1'
lambda { |target, result| result == false }
else
'result == false'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment