Skip to content

Commit bbfdff2

Browse files
p-mongop
andauthored
Mongoid operates on documents, not records (#5324)
Co-authored-by: Oleg Pudeyev <[email protected]>
1 parent a7cce39 commit bbfdff2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

source/additional-resources.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Screencasts
2323
<https://www.youtube.com/watch?v=L0RqU2MdqXU>`_
2424

2525
An overview of Mongoid, by Ryan Bates including the basics
26-
of setting up an app, querying for records, adding embedded
26+
of setting up an app, querying for documents, adding embedded
2727
associations, overriding the id, and more.
2828

2929
- `Ruby on Rails Web Services and Integration with MongoDB, Week 3: Mongoid

source/reference/associations.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,9 +1077,9 @@ documents which satisfy the scope condition.. The scope may be either:
10771077

10781078
.. note::
10791079

1080-
Mongoid's syntax for scoped association differs from that of Active Record.
1080+
Mongoid's syntax for scoped association differs from that of ActiveRecord.
10811081
Mongoid uses the ``:scope`` keyword argument for consistency with other
1082-
association options, whereas in Active Record the scope is a positional
1082+
association options, whereas in ActiveRecord the scope is a positional
10831083
argument.
10841084

10851085

@@ -1233,8 +1233,8 @@ to be deleted. The options are as follows:
12331233
- ``:restrict_with_exception``: ``raise`` an error if the child is not empty.
12341234
- ``:restrict_with_error``: Cancel operation and return false if the child is not empty.
12351235

1236-
If no ``:dependent`` option is provided, deleting the parent record leaves the child record unmodified
1237-
(in other words, the child record continues to reference the now deleted parent record via the foreign key field).
1236+
If no ``:dependent`` option is provided, deleting the parent document leaves the child document unmodified
1237+
(in other words, the child document continues to reference the now deleted parent document via the foreign key field).
12381238
The child may become orphaned if it is ordinarily only referenced via the parent.
12391239

12401240
.. code-block:: ruby
@@ -1620,7 +1620,7 @@ with, and is useful for developers of extensions to Mongoid.
16201620
* - ``Association#name``
16211621
- Returns the association name.
16221622
* - ``Association#options``
1623-
- Returns self, for API compatibility with Active Record.
1623+
- Returns self, for API compatibility with ActiveRecord.
16241624
* - ``Association#order``
16251625
- Returns the custom sorting options on the association.
16261626
* - ``Association#polymorphic?``

0 commit comments

Comments
 (0)