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

References to ActiveRecord documents fail

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.2.0
    • Affects Version/s: None
    • Component/s: 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 Unassigned
            Reporter:
            paulelliott Paul Elliott
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: