diff options
author | Xavier Noria <fxn@hashref.com> | 2011-02-18 22:54:02 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-02-18 22:54:02 +0100 |
commit | 2acb5e348d2e145119a512a613a986aaf5149211 (patch) | |
tree | 58b5a3ac5606cfdf33c6f4836aece4529801e606 /activerecord/lib/active_record | |
parent | ad3e4e3af698afda19549505cf82efb5eb6427f2 (diff) | |
download | rails-2acb5e348d2e145119a512a613a986aaf5149211.tar.gz rails-2acb5e348d2e145119a512a613a986aaf5149211.tar.bz2 rails-2acb5e348d2e145119a512a613a986aaf5149211.zip |
removes unrealistic example (authentication plus gender?), that it is not needed anyway
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index cb3279174f..c48ba3114e 100644 --- a/activerecord/lib/active_record/base.rb +++ b/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. # |