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

Inherit attrs permit status

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

      Hi, I've realized that with my previous commit [MONGOID-33b410a] (https://github.com/mongoid/mongoid/pull/2600) I didn't care about if the attrs parameter was permitted or not, so attributes would never be permitted, resulting always in ActiveModel::ForbiddenAttributes exception when using MultiParameter Attributes. This solves the issue and makes multiparameter attributes work with strong parameters.

            Assignee:
            Unassigned Unassigned
            Reporter:
            xxswingxx xxswingxx
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: