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

Implement Mongoid::Storage association macros

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Rails
    • None
    • Ruby Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Implement the has_one_attached and has_many_attached macros, using the same semantics as ActiveStorage. (Make sure differences in the API are absolutely necessary, and document them thoroughly if so.)

      They are, fundamentally, just specializations of has_one and has_many, and it may be possible to implement them as simple wrappers around those macros. In order to be able to reflect on attachments, however, it will also be necessary to add a separate list that tracks attachment associations, which will be appended to by has_one_attached and has_many_attached.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jamis.buck@mongodb.com Jamis Buck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None