Implement Mongoid::Storage association macros

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Rails
    • None
    • Ruby Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • 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
              Reporter:
              Jamis Buck
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: