diff options
author | प्रथमेश Sonpatki <csonpatki@gmail.com> | 2016-03-26 14:26:57 +0530 |
---|---|---|
committer | प्रथमेश Sonpatki <csonpatki@gmail.com> | 2016-03-26 14:26:57 +0530 |
commit | 30bb2d80b67696c5f35ee1d0479e0fc481726043 (patch) | |
tree | b64539281c5e33c2570bcb4f6f8d658143702971 /activerecord/lib/active_record | |
parent | 288bf69aedb56a93878fac4e4454a20c1d054440 (diff) | |
parent | 39567f7a5eae1861ec48402ecd46417956db34cd (diff) | |
download | rails-30bb2d80b67696c5f35ee1d0479e0fc481726043.tar.gz rails-30bb2d80b67696c5f35ee1d0479e0fc481726043.tar.bz2 rails-30bb2d80b67696c5f35ee1d0479e0fc481726043.zip |
Merge pull request #24326 from mechanicles/highlight-word
Highlight the dynamic method finder 'find_by_' [ci skip]
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 <tt>Person.find_by_last_name!</tt>. # - # 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 <tt>find_by_</tt> 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 |