Sha256: 84f4c9af88ae2da0df2fbbf67f983cb209bec5fa2c3274978251fe9edfdcf46c

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

class Gate < ActiveRecord::Base
  include AASM

  # Fake this column for testing purposes
  # attr_accessor :aasm_state

  def value
    'value'
  end

  aasm do
    state :opened
    state :closed

    event :view do
      transitions :to => :read, :from => [:needs_attention]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aasm-4.2.0 spec/models/active_record/gate.rb