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

options and client are prohibited field names after upgrading to 6.1

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 6.2.1
    • Affects Version/s: 6.2.0, 6.1.1
    • Component/s: None
    • None

      Hi

      I'm upgrading a Rails 4.2 app with mongoid 5.2, but after the upgrade I find that options, client or method field names are not allowed.

      This is the conclusion I arrived to after looking at mongoid code and seeing this exception:

      NameError - undefined method options' for classScheduledReport': mongoid (6.1.1) lib/mongoid/errors/invalid_field.rb:44:in `origin'

      Is there any way to define a field :foo that maps to :options or whatever field in the database?

      Thanks

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            ricard Ricard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: