From 2acb5e348d2e145119a512a613a986aaf5149211 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Fri, 18 Feb 2011 22:54:02 +0100 Subject: removes unrealistic example (authentication plus gender?), that it is not needed anyway --- activerecord/lib/active_record/base.rb | 5 +---- 1 file changed, 1 insertion(+), 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. # -- cgit v1.2.3