Skip to content

Commit 3c5cb5e

Browse files
committed
Remove an incorrect comment for find_by example
Dynamic finder methods (`DynamicMatchers`) has not been previously deprecated. AFAIK, Rails 6.0 has also no plans to deprecate it. https://github.com/rails/rails/blob/v6.0.3.2/activerecord/lib/active_record/dynamic_matchers.rb So, it seems that this was written incorrectly when I refer to the following. - #220 - #208 Therefore this PR removes the incorrect example comment for `find_by`.
1 parent c0edf66 commit 3c5cb5e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

README.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,6 @@ User.where(first_name: 'Bruce', last_name: 'Wayne').take
831831
832832
# bad
833833
User.find_by_email(email)
834-
# bad, deprecated in Active Record 4.0, removed in 4.1+
835834
User.find_by_first_name_and_last_name('Bruce', 'Wayne')
836835
837836
# good

0 commit comments

Comments
 (0)