Skip to content

Commit 15d871a

Browse files
authored
Merge pull request #305 from andyw8/andyw8/use-consistant-language-prefer
Use consistent language for `prefer` vs `favor`
2 parents 158d178 + ecd1be0 commit 15d871a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ Client.where(
871871

872872
=== `find` [[find]]
873873

874-
Favor the use of `find` over `where.take!`, `find_by!`, and `find_by_id!` when you need to retrieve a single record by primary key id and raise `ActiveRecord::RecordNotFound` when the record is not found.
874+
Prefer `find` over `where.take!`, `find_by!`, and `find_by_id!` when you need to retrieve a single record by primary key id and raise `ActiveRecord::RecordNotFound` when the record is not found.
875875

876876
[source,ruby]
877877
----
@@ -890,7 +890,7 @@ User.find(id)
890890

891891
=== `find_by` [[find_by]]
892892

893-
Favor the use of `find_by` over `where.take` and `find_by_attribute` when you need to retrieve a single record by one or more attributes and return `nil` when the record is not found.
893+
Prefer `find_by` over `where.take` and `find_by_attribute` when you need to retrieve a single record by one or more attributes and return `nil` when the record is not found.
894894

895895
[source,ruby]
896896
----
@@ -909,7 +909,7 @@ User.find_by(first_name: 'Bruce', last_name: 'Wayne')
909909

910910
=== Hash conditions [[where-not]] [[hash-conditions]]
911911

912-
Favor passing conditions to `where` and `where.not` as a hash over using fragments of SQL.
912+
Prefer passing conditions to `where` and `where.not` as a hash over using fragments of SQL.
913913

914914
[source,ruby]
915915
----
@@ -976,7 +976,7 @@ User.pick(:name)
976976

977977
=== `ids` [[ids]]
978978

979-
Favor the use of `ids` over `pluck(:id)`.
979+
Prefer `ids` over `pluck(:id)`.
980980

981981
[source,ruby]
982982
----

0 commit comments

Comments
 (0)