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

Access attributes using a method, allows attributes overriding.

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.0.2
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      The AR api describes the attributes method as a means to override serialization attributes, etc.
      The proposed fix makes it trivial to inject new attributes to a model, while not doing any dirty hacks to the method_missing. All specs pass.

            Assignee:
            durran Durran Jordan
            Reporter:
            romanbsd Roman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: