Skip to content

NoMethodError: private method `load' called #713

@alexandrule

Description

@alexandrule

I'm facing a problem with the method load
I suppose the problem is with autoloading in Rails and calling private method load from ActiveSupport::Dependencies
Can I find a workaround for solving this problem or I missed something in configuration?

gem 'rails', '~> 4.2.3'
gem 'rails_event_store', '~> 0.42.0'
module Domain
  class Deal
    include AggregateRoot
  end
end
Domain::Deal.new.load(stream)
NoMethodError: private method `load' called for #<Domain::Deal:0x007f94d144bde0>
Domain::Deal.ancestors
=> [
    [ 0] Domain::Deal < Object,
    [ 1] AggregateRoot::AggregateMethods,
    [ 2] #<Module:0x007f91ad57c790>,
    [ 3] #<Module:0x007f91ad57c920>,
    [ 4] AggregateRoot,
    [ 5] Object < BasicObject,
    [ 6] Commands::Execute,
    [ 7] Rake::DSL,
    [ 8] Rake::FileUtilsExt,
    [ 9] FileUtils,
    [10] FileUtils::StreamUtils_,
    [11] PP::ObjectMixin,
    [12] ActiveSupport::Dependencies::Loadable,
    [13] V8::Conversion::Object,
    [14] JSON::Ext::Generator::GeneratorMethods::Object,
    [15] Kernel,
    [16] BasicObject
]

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