Skip to content

Commit

Permalink
Changes syntax of save_without_session_maintenance calls, because now…
Browse files Browse the repository at this point in the history
… save(:validate => false) is used in AR and MM instead of save(false).
  • Loading branch information
slainer68 committed Feb 4, 2010
1 parent ca60034 commit 37f1d54
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/novelys_authlogic/acts_as_authentic/password.rb
Expand Up @@ -274,7 +274,7 @@ def reset_password
# Resets the password to a random friendly token and then saves the record.
def reset_password!
reset_password
save_without_session_maintenance(false)
save_without_session_maintenance(:validate => false)
end
alias_method :randomize_password!, :reset_password!

Expand Down
Expand Up @@ -91,7 +91,7 @@ def reset_perishable_token
# Same as reset_perishable_token, but then saves the record afterwards.
def reset_perishable_token!
reset_perishable_token
save_without_session_maintenance(false)
save_without_session_maintenance(:validate => false)
end

# A convenience method based on the disable_perishable_token_maintenance configuration option.
Expand Down
Expand Up @@ -53,7 +53,7 @@ def reset_persistence_token
# Same as reset_persistence_token, but then saves the record.
def reset_persistence_token!
reset_persistence_token
save_without_session_maintenance(false)
save_without_session_maintenance(:validate => false)
end
alias_method :forget!, :reset_persistence_token!

Expand Down
2 changes: 1 addition & 1 deletion lib/novelys_authlogic/session/callbacks.rb
Expand Up @@ -92,7 +92,7 @@ def persist

def save_record(alternate_record = nil)
r = alternate_record || record
r.save_without_session_maintenance(false) if r && r.changed? && !r.readonly?
r.save_without_session_maintenance(:validate => false) if r && r.changed? && !r.readonly?
end
end
end
Expand Down

0 comments on commit 37f1d54

Please sign in to comment.