Sha256: 88ad5c2d0686534dd2e00ac2626c4321d0b2187a8bbfe36864388acfa019e249
Contents?: true
Size: 839 Bytes
Versions: 95
Compression:
Stored size: 839 Bytes
Contents
# frozen_string_literal: true module Spree module Core class StateMachines # Reimbursement' state machine # # for each event the following instance methods are dynamically implemented: # #<event_name> # #<event_name>! # #can_<event_name>? # # for each state the following instance methods are implemented: # #<state_name>? # module Reimbursement extend ActiveSupport::Concern included do state_machine :reimbursement_status, initial: :pending do event :errored do transition to: :errored, from: [:pending, :errored] end event :reimbursed do transition to: :reimbursed, from: [:pending, :errored] end end end end end end end
Version data entries
95 entries across 95 versions & 1 rubygems