Sha256: 49d428890d736592b154a1689fdb60c0c7743914b1470f9971af074a99830192

Contents?: true

Size: 436 Bytes

Versions: 155

Compression:

Stored size: 436 Bytes

Contents

module Spree
  class ActionCallbacks
    attr_reader :before_methods
    attr_reader :after_methods
    attr_reader :fails_methods

    def initialize
      @before_methods = []
      @after_methods = []
      @fails_methods = []
    end

    def before(method)
      @before_methods << method
    end

    def after(method)
      @after_methods << method
    end

    def fails(method)
      @fails_methods << method
    end
  end
end

Version data entries

155 entries across 155 versions & 2 rubygems

Version Path
spree_backend-4.8.4 lib/spree/backend/action_callbacks.rb
spree_backend-4.8.3 lib/spree/backend/action_callbacks.rb
spree_backend-4.8.2 lib/spree/backend/action_callbacks.rb
spree_backend-4.8.1 lib/spree/backend/action_callbacks.rb
spree_backend-4.0.9 lib/spree/backend/action_callbacks.rb
spree_backend-4.1.15 lib/spree/backend/action_callbacks.rb
spree_backend-4.2.7 lib/spree/backend/action_callbacks.rb
spree_backend-4.3.3 lib/spree/backend/action_callbacks.rb
spree_backend-4.7.2 lib/spree/backend/action_callbacks.rb
spree_backend-4.6.2 lib/spree/backend/action_callbacks.rb
spree_backend-4.7.1 lib/spree/backend/action_callbacks.rb
spree_backend-4.7.0 lib/spree/backend/action_callbacks.rb
spree_backend-4.6.1 lib/spree/backend/action_callbacks.rb
spree_backend-4.6.0 lib/spree/backend/action_callbacks.rb
spree_backend-4.5.1 lib/spree/backend/action_callbacks.rb
spree_backend-4.5.0 lib/spree/backend/action_callbacks.rb
spree_backend-4.2.6 lib/spree/backend/action_callbacks.rb
spree_backend-4.3.2 lib/spree/backend/action_callbacks.rb
spree_backend-4.4.1 lib/spree/backend/action_callbacks.rb
spree_backend-4.4.0 lib/spree/backend/action_callbacks.rb