Skip to content

Commit 78bdfba

Browse files
committed
Poor way to ensure with_strategy(->{ Default }) has OnDSL
1 parent c57604b commit 78bdfba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aggregate_root/lib/aggregate_root.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ def marshal_load(vars)
7979
def self.with_default_apply_strategy
8080
Module.new do
8181
def self.included(host_class)
82-
host_class.extend OnDSL
8382
host_class.include AggregateRoot.with_strategy(-> { DefaultApplyStrategy.new })
8483
end
8584
end
@@ -88,7 +87,8 @@ def self.included(host_class)
8887
def self.with_strategy(strategy)
8988
Module.new do
9089
def self.included(host_class)
91-
host_class.extend Constructor
90+
host_class.extend OnDSL
91+
host_class.extend Constructor
9292
host_class.include AggregateMethods
9393
end
9494

0 commit comments

Comments
 (0)