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

Update destructive fields error messages

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      Delayed_job worker can not perform jobs on system with mongoid version newer than 2.4.1 (2.4.1 works fine)
      It says: "Defining a field named delay is not allowed"

      delayed_job (3.0.1)
      delayed_job_mongoid (1.0.8)
      ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]
      rails 3.2.0

      Part of stack trace:
      {Defining a field named delay is not allowed. Do not define fields that conflict with Mongoid internal attributes or method names. Use Mongoid.destructive_fields to see what names this includes.\n/home/kriger/.rvm/gems/ruby-1.9.2-p290@rails3/gems/mongoid-2.4.5/lib/mongoid/fields.rb:328:in `check_field_name!'\n/home/kriger/.rvm/gems/ruby-1.9.2-p290@rails3/gems/mongoid-2.4.5/lib/mongoid/fields.rb:192:

            Assignee:
            Unassigned Unassigned
            Reporter:
            alexnorthsoul alexnorthsoul
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: