lib/eco/api/usecases/use_case.rb in eco-helpers-2.5.2 vs lib/eco/api/usecases/use_case.rb in eco-helpers-2.5.3
- old
+ new
@@ -73,13 +73,13 @@
# via an children class of `Eco::API::Common::Loaders::Base`
def set_session_n_options(session:, options: @options)
return false unless callback_from_loader?
use_case_self = self
callback_self.instance_eval do
- next unless self.is_a?(Eco::API::Common::Loaders::CaseBase)
- # `self` is the use case itself (when used the Loader)
@session = session
@options = options
+ # `self` is the use case itself (when used the Loader)
+ next unless self.is_a?(Eco::API::Common::Loaders::CaseBase)
@usecase = use_case_self
end
true
end
end