Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Small code cleanup

  • Loading branch information...
commit ad550b5cf289cc6edf54cb99dfe8c3c44ffd4dcf 1 parent 54f632c
@binarylogic authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/authlogic_openid/acts_as_authentic.rb
View
7 lib/authlogic_openid/acts_as_authentic.rb
@@ -9,8 +9,7 @@ def self.included(klass)
module Methods
def self.included(klass)
klass.class_eval do
- alias_method_chain :save, :openid
- #validates_uniqueness_of :openid_identifier, :scope => validations_scope, :if => :using_openid?
+ validates_uniqueness_of :openid_identifier, :scope => validations_scope, :if => :using_openid?
validate :validate_openid
[:validates_length_of_login_field_options, :validates_format_of_login_field_options,
:validates_confirmation_of_password_field_options, :validates_length_of_password_confirmation_field_options].each do |method|
@@ -19,10 +18,10 @@ def self.included(klass)
end
end
- def save_with_openid(*args, &block)
+ def save(*args, &block)
normalize_openid_identifier if using_openid?
if !authenticate_with_openid? || (authenticate_with_openid? && authenticate_with_openid)
- result = save_without_openid(*args)
+ result = super
yield(result) if block_given?
result
else
Please sign in to comment.
Something went wrong with that request. Please try again.