Sha256: 19833d94179beebff2d3f34101a600eebe083d37adf016d02cf017b22ba870dc
Contents?: true
Size: 703 Bytes
Versions: 32
Compression:
Stored size: 703 Bytes
Contents
class Thief < ActiveRecord::Base if ActiveRecord::VERSION::MAJOR >= 3 self.table_name = 'thieves' else set_table_name "thieves" end include AASM aasm do state :rich state :jailed initial_state Proc.new {|thief| thief.skilled ? :rich : :jailed } end attr_accessor :skilled, :aasm_state end class MultipleThief < ActiveRecord::Base if ActiveRecord::VERSION::MAJOR >= 3 self.table_name = 'multiple_thieves' else set_table_name "multiple_thieves" end include AASM aasm :left, :column => :aasm_state do state :rich state :jailed initial_state Proc.new {|thief| thief.skilled ? :rich : :jailed } end attr_accessor :skilled, :aasm_state end
Version data entries
32 entries across 32 versions & 1 rubygems