Skip to content

Commit

Permalink
Merge pull request #251 from vijaydev/patch-1
Browse files Browse the repository at this point in the history
Fixed typos in comments
  • Loading branch information
binarylogic committed May 10, 2011
2 parents 29846f5 + e54cc7b commit 98378d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/authlogic/acts_as_authentic/login.rb
Expand Up @@ -9,7 +9,7 @@ def self.included(klass)
end
end

# Confguration for the login field.
# Configuration for the login field.
module Config
# The name of the login field in the database.
#
Expand All @@ -20,7 +20,7 @@ def login_field(value = nil)
end
alias_method :login_field=, :login_field

# Whether or not the validate the login field
# Whether or not to validate the login field
#
# * <tt>Default:</tt> true
# * <tt>Accepts:</tt> Boolean
Expand All @@ -42,7 +42,7 @@ def validates_length_of_login_field_options(value = nil)
end
alias_method :validates_length_of_login_field_options=, :validates_length_of_login_field_options

# A convenience function to merge options into the validates_length_of_login_field_options. So intead of:
# A convenience function to merge options into the validates_length_of_login_field_options. So instead of:
#
# self.validates_length_of_login_field_options = validates_length_of_login_field_options.merge(:my_option => my_value)
#
Expand Down Expand Up @@ -89,7 +89,7 @@ def merge_validates_uniqueness_of_login_field_options(options = {})
self.validates_uniqueness_of_login_field_options = validates_uniqueness_of_login_field_options.merge(options)
end

# This method allows you to find a record with the given login. If you notice, with ActiveRecord you have the
# This method allows you to find a record with the given login. If you notice, with Active Record you have the
# validates_uniqueness_of validation function. They give you a :case_sensitive option. I handle this in the same
# manner that they handle that. If you are using the login field and set false for the :case_sensitive option in
# validates_uniqueness_of_login_field_options this method will modify the query to look something like:
Expand Down

0 comments on commit 98378d4

Please sign in to comment.