lib/simple_service/organizer.rb in simple_service-1.3.3 vs lib/simple_service/organizer.rb in simple_service-1.3.4
- old
+ new
@@ -21,10 +21,11 @@
def commands
self.class.instance_variable_get('@commands')
end
def call
+ # underscores used to disambiguate local vars from methods with the same name
with_validation do |_commands|
_commands.each do |command|
# halt further command calls if success has been set to false
# in a previously called command
@@ -56,9 +57,10 @@
end
private
def with_validation
+ # don't mess with the context if we are doing internal validation
add_validation_keys_to_context unless skip_validation
# ensure that the organizer and commands are setup correctly
# by injecting an internal service organizer into the stack of
# commands to be executed. Only include this if skip_validation is