-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
When I access field with custom serialization by square bracket operator or read_attribute method, I get raw value. Is it a bug? Example:
class Record include Mongoid::Document field :test, type: TreeValue end
record.test # <TreeValue:0x007f9e47034c78> record[:test] # Array (2 elements) record.read_attribute(:test) # Array (2 elements)
Mongoid v4.0.1