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

Implement MassAssignment like Rails does.

    • Type: Icon: Task Task
    • Resolution: Done
    • 4.0.0 final
    • Affects Version/s: None
    • Component/s: None

      Right now you implement logger with blacklists by default, we can however set attr_accessible to nil which sets to a whitelist, but this just causes problems (problems in that it never actually sends off the proper raise, just a method missing raise,) so it would be nice to have an option to set the Sanitizer to StrictSanitizer so that we actually get the MassAssignment security error and can catch that properly. This is a very simple fix IMO and only requires a minor refactor that would not even affect any users and I would do it myself if you can point me to where I need to add tests for this specific feature.

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

              Created:
              Updated:
              Resolved: