Mongoid::Association::Relatable#namespace_hierarchy method breaks with anonymous classes

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 8.0.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      This code demonstrates the issue:

       
       

      Class.new do
         include Mongoid::Document
         embeds_many :addresses
      end

       
       
      An error occurs because the Mongoid::Association::Relatable#namespace_hierarchy expects the parent class to have a name.
       

              Assignee:
              Oleg Pudeyev (Inactive)
              Reporter:
              Johnny Shields
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: