lib/trailblazer/rails/controller.rb in trailblazer-rails-2.4.1 vs lib/trailblazer/rails/controller.rb in trailblazer-rails-2.4.2
- old
+ new
@@ -10,16 +10,18 @@
_assign_trb_ivars(result)
@_result = result
- return if result.failure? || block.nil?
+ return result if result.failure? || block.nil?
if block.arity.eql?(1)
yield(result)
else
yield(result, **result.to_hash)
end
+
+ result
end
alias run run_v21 unless method_defined?(:run)
private