lib/micro/case.rb in u-case-3.1.0 vs lib/micro/case.rb in u-case-4.0.0

- old
+ new

@@ -14,11 +14,11 @@ require 'micro/case/strict' require 'micro/case/config' require 'micro/cases' - include Micro::Attributes.without(:strict_initialize) + include Micro::Attributes.with(:initialize, :diff) def self.call(options = Kind::Empty::HASH) new(options).__call__ end @@ -61,10 +61,11 @@ self end end def self.inherited(subclass) - subclass.attributes(self.attributes_data({})) + subclass.__attributes_set_after_inherit__(self.__attributes_data__) + subclass.extend ::Micro::Attributes.const_get('Macros::ForSubclasses'.freeze) if self.send(:__flow_use_cases) && !subclass.name.to_s.end_with?(FLOW_STEP) raise "Wooo, you can't do this! Inherits from a use case which has an inner flow violates "\ "one of the project principles: Solve complex business logic, by allowing the composition of use cases. "\