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

Implement MassAssignment like Rails does.

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.0.0 final
    • Component/s: None
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: