options and client are prohibited field names after upgrading to 6.1

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Blocker - P1
    • 6.2.1
    • Affects Version/s: 6.2.0, 6.1.1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
              Reporter:
              Ricard
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: