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

Raise a Mongoid::Errors::UnknownAttributeError when you try update or assigned an attribute not define in field and you don't allow_dynamic_field

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Before this pull request a UnknowMethod is return. In the ActiveRecord way a UnknowAttributeError si raised. I think it's better to do that because more easy to catch.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: