References to ActiveRecord documents fail

XMLWordPrintableJSON

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

      If you have a mongoid document that references an activerecord document, it fails when it tries to set the metadata in lib/mongoid/relations/proxy.rb:115:in `characterize_one'.

      This can be replicated with code along the lines of:

      class Item
      include Mongoid::Document

      referenced_in :store
      end

      class Store < ActiveRecord::Base
      end

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

              Created:
              Updated:
              Resolved: