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

ActiveRecord type breaks at version 2.4

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

      I have a rails project with active record and mongo.

      In a model I have the following mapping:
      field :subject, :type => ActiveRecord

      But upgrading from 2.2.1 to 2.4.12 I got that error:
      gems/mongoid-2.4.12/lib/mongoid/fields.rb:284:in {{add_field': undefined method }}instantiate' for ActiveRecord:Module (NoMethodError)

      What should I do?

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

              Created:
              Updated:
              Resolved: