Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5333

Document how custom fields are returned from attributes/read_attribute

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.0.1
    • Affects Version/s: None
    • Component/s: Docs
    • Labels:
      None

      Our current reference documentation for mongoization/demongoization/evolution is the custom field definition - https://www.mongodb.com/docs/mongoid/master/reference/fields/#custom-field-types. This documentation can be expanded to state what is returned from #attributes and #read_attribute methods for custom types, i.e. whether it's a value of the field type or the mongoized value (I expect the latter).

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: