ActiveRecord type breaks at version 2.4

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 3.0.6
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              marcossousa
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: