Skip to content

NoMethodError: private method `existence_check' called for... #39

@iranedo

Description

@iranedo

I get this error when in the same model I try to relate relational and non-relational models
class Comment
include Mongoid::Document
include ActiveMongoid::Associations
include Mongoid::Timestamps

belongs_to_record :user, autosave: true
belongs_to_record :target, polymorphic: true, autosave: true
belongs_to_record :media_file
belongs_to_record :media_post
has_one :comment_address

end

Removing the private in ClassMethods in accesors.rb could fix this error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions