-
Notifications
You must be signed in to change notification settings - Fork 126
Closed
Description
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
endDomain::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
Labels
No labels