Permalink
Browse files

removes unrealistic example (authentication plus gender?), that it is…

… not needed anyway
  • Loading branch information...
fxn committed Feb 18, 2011
1 parent ad3e4e3 commit 2acb5e348d2e145119a512a613a986aaf5149211
Showing with 1 addition and 4 deletions.
  1. +1 −4 activerecord/lib/active_record/base.rb
@@ -180,10 +180,7 @@ module ActiveRecord #:nodoc:
# It's also possible to use multiple attributes in the same find by separating them with "_and_".
#
# Person.where(:user_name => user_name, :password => password).first
- # Person.find_by_user_name_and_password #with dynamic finder
- #
- # Person.where(:user_name => user_name, :password => password, :gender => 'male').first
- # Payment.find_by_user_name_and_password_and_gender(user_name, password, 'male')
+ # Person.find_by_user_name_and_password(user_name, password) # with dynamic finder
#
# It's even possible to call these dynamic finder methods on relations and named scopes.
#

0 comments on commit 2acb5e3

Please sign in to comment.