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