-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Docs
-
None
Add an example (and a test if we don't have one) that transforms values using write_attribute and read_attribute, taking effect before serialization and after deserialization respectively. E.g. to retrieve field values in upper case:
class Band
def foo
read_attribute(:foo).upcase
end
end
- related to
-
MONGOID-4816 Inheritance: Allow override of discriminator values in _type field used to denote subclass
- Released