Sha256: 878b71387fa5b9294de3fd5862b4fb1697b771389aac1ca57362685c86c3378f
Contents?: true
Size: 535 Bytes
Versions: 9
Compression:
Stored size: 535 Bytes
Contents
# frozen_string_literal: true class Tramway::Event::Action < Tramway::Core::ApplicationRecord belongs_to :event, class_name: 'Tramway::Event::Event' aasm :action_state, column: :action_state do state :must_be_done, initial: true state :done state :declined event :do do transitions from: :must_be_done, to: :done end event :decline do transitions from: :must_be_done, to: :declined end event :return do transitions from: %i[declined done], to: :must_be_done end end end
Version data entries
9 entries across 9 versions & 1 rubygems