Permalink
Browse files

persist callback defaults to true

  • Loading branch information...
Hermanverschooten committed Mar 1, 2014
1 parent 33df259 commit 5ed9e99c315bc6242d6df453210d808d267453cf
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/authlogic/session/callbacks.rb
@@ -65,7 +65,7 @@ def self.included(base) #:nodoc:
base.send :include, ActiveSupport::Callbacks
if ActiveSupport::VERSION::STRING >= '4.1'
base.define_callbacks *METHODS + [{:terminator => ->(target, result){ result == false } }]
- base.define_callbacks *['persist', {:terminator => ->(target, result){ result == false } }]
+ base.define_callbacks *['persist', {:terminator => ->(target, result){ result == true } }]
else
base.define_callbacks *METHODS + [{:terminator => 'result == false'}]
base.define_callbacks *['persist', {:terminator => 'result == true'}]
@@ -98,4 +98,4 @@ def save_record(alternate_record = nil)
end
end
end
-end
+end

0 comments on commit 5ed9e99

Please sign in to comment.