lib/spree/backend/callbacks.rb in solidus_backend-1.2.3 vs lib/spree/backend/callbacks.rb in solidus_backend-1.3.0.beta1

- old
+ new

@@ -2,11 +2,10 @@ module Backend module Callbacks extend ActiveSupport::Concern module ClassMethods - attr_accessor :callbacks protected def new_action @@ -39,14 +38,13 @@ def invoke_callbacks(action, callback_type) callbacks = self.class.callbacks || {} return if callbacks[action].nil? case callback_type.to_sym - when :before then callbacks[action].before_methods.each {|method| send method } - when :after then callbacks[action].after_methods.each {|method| send method } - when :fails then callbacks[action].fails_methods.each {|method| send method } + when :before then callbacks[action].before_methods.each { |method| send method } + when :after then callbacks[action].after_methods.each { |method| send method } + when :fails then callbacks[action].fails_methods.each { |method| send method } end end - end end end