From 39567f7a5eae1861ec48402ecd46417956db34cd Mon Sep 17 00:00:00 2001 From: Santosh Wadghule Date: Sat, 26 Mar 2016 13:44:49 +0530 Subject: Highlight the dynamic method finder 'find_by_' [ci skip] --- activerecord/lib/active_record/base.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 7ed2fe48be..6a1a27ce41 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -169,7 +169,8 @@ module ActiveRecord #:nodoc: # ActiveRecord::RecordNotFound error if they do not return any records, # like Person.find_by_last_name!. # - # It's also possible to use multiple attributes in the same find by separating them with "_and_". + # It's also possible to use multiple attributes in the same find_by_ by separating them with + # "_and_". # # Person.find_by(user_name: user_name, password: password) # Person.find_by_user_name_and_password(user_name, password) # with dynamic finder -- cgit v1.2.3