lib/simple_service/organizer.rb in simple_service-1.3.91 vs lib/simple_service/organizer.rb in simple_service-1.4.0

- old
+ new

@@ -26,11 +26,11 @@ # 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 - break if context[:success] == false + # in a previously called command or halt is set + break if context[:success] == false || context[:halt] == true # if command class defines "expects" then only feed the command # those keys, otherwise just give it the entire context _context = if command.get_expects.any? {}.tap do |c|