Skip to content

Commit ccf777b

Browse files
authored
MONGOID-5333 Document how custom fields are returned from attributes/read_attribute (#5335)
1 parent e0d3de9 commit ccf777b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/reference/fields.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,11 @@ Attributes can always be read using mass attribute access or ``read_attribute``
11631163
bob.read_attribute(:age)
11641164
# => 42
11651165

1166+
.. note::
1167+
1168+
The values returned from the ``read_attribute`` method, and those stored in
1169+
the ``attributes`` hash, are the ``mongoized`` values.
1170+
11661171

11671172
Special Characters in Field Names
11681173
---------------------------------

0 commit comments

Comments
 (0)