class Spree::ActionCallbacks
Attributes
after_methods[R]
before_methods[R]
fails_methods[R]
Public Class Methods
new()
click to toggle source
# File lib/spree/backend/action_callbacks.rb, line 9 def initialize @before_methods = [] @after_methods = [] @fails_methods = [] end
Public Instance Methods
after(method)
click to toggle source
# File lib/spree/backend/action_callbacks.rb, line 19 def after(method) @after_methods << method end
before(method)
click to toggle source
# File lib/spree/backend/action_callbacks.rb, line 15 def before(method) @before_methods << method end
fails(method)
click to toggle source
# File lib/spree/backend/action_callbacks.rb, line 23 def fails(method) @fails_methods << method end