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

Fix type casting when retrieving attributes

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      • durran introduced a bug for typecasting for BigDecimal & Time in this
        commit: 42ae841fdb91d61 which prevents a field's value from being
        typecasted after it has been retrieved from the database.

      The change assumes that the value has already been cast to its appropriate
      value; however, BigDecimal & Date are not sufficiently represented in
      MongoDB and need to be cast after the document has been instantiated.

      • this change proposes that certain field types should always be
        typecast (BigDecimal & Date).

            Assignee:
            Unassigned Unassigned
            Reporter:
            jpfuentes2 Jacques Fuentes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None