Skip to content

Commit 28e3a9d

Browse files
committed
vale
1 parent cf1464e commit 28e3a9d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/interact-data/scoping.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ if you are applying the same criteria to most queries.
3131
Named Scopes
3232
------------
3333

34-
Named scopes are criteria defined at class load that are
35-
referenced by a provided name. Similar to normal criteria, they are
36-
lazily loaded and chainable.
34+
Named scopes are criteria defined at class load that are referenced by a
35+
provided name. Similar to filter criteria, they are lazily loaded and
36+
chainable.
3737

3838
This example defines a ``Band`` model that includes the following named
3939
scopes:
@@ -140,8 +140,8 @@ as boolean values or integers.
140140
:language: ruby
141141
:dedent:
142142

143-
You *should not* use dot notation to reference nested fields in default
144-
scopes. This can lead to {+odm+} initializing unexpected fields in new
143+
We do not recommend using dot notation to reference nested fields in default
144+
scopes. This can direct {+odm+} to initialize unexpected fields in new
145145
models.
146146

147147
For example, if you define a default scope that references the
@@ -158,7 +158,7 @@ Associations
158158
If you define a default scope on a model that is part of an
159159
association, you must reload the association to have scoping reapplied.
160160
This is necessary for when you change a value of a document in the
161-
association that would affect its visibility when the scope is applied.
161+
association that affects its visibility when the scope is applied.
162162

163163
This example uses the following models:
164164

@@ -255,4 +255,4 @@ the following example:
255255
Additional Information
256256
----------------------
257257

258-
.. TODO add additional info
258+
.. TODO add info links

0 commit comments

Comments
 (0)