Skip to content

Commit 189ecdb

Browse files
lukaszreszkemostlyobviousfidel
committed
Custom strategy shouldn't rely on OnDSL
Co-authored-by: Paweł Pacana <[email protected]> Co-authored-by: Szymon Fiedler <[email protected]>
1 parent b31ea82 commit 189ecdb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

aggregate_root/lib/aggregate_root.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ def self.included(host_class)
9393
def self.with_strategy(strategy)
9494
Module.new do
9595
def self.included(host_class)
96-
host_class.extend OnDSL
9796
host_class.extend Constructor
9897
host_class.include AggregateMethods
9998
end

ruby_event_store-rspec/spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
BazEvent = Class.new(RubyEventStore::Event)
1010

1111
class TestAggregate
12-
include AggregateRoot.with_strategy(-> { AggregateRoot::DefaultApplyStrategy.new(strict: false) })
12+
include AggregateRoot.with_default_strategy(strict: false)
1313

1414
def foo
1515
apply(FooEvent.new)

0 commit comments

Comments
 (0)