Methods
Public Instance methods
aasm_column(column_name=nil)

Maps to the aasm_column in the database. Deafults to "aasm_state". You can write:

  create_table :foos do |t|
    t.string :name
    t.string :aasm_state
  end

  class Foo < ActiveRecord::Base
    include AASM
  end

OR:

  create_table :foos do |t|
    t.string :name
    t.string :status
  end

  class Foo < ActiveRecord::Base
    include AASM
    aasm_column :status
  end

This method is both a getter and a setter

    # File lib/persistence/active_record_persistence.rb, line 68
68:         def aasm_column(column_name=nil)
69:           if column_name
70:             @aasm_column = column_name.to_sym
71:           else
72:             @aasm_column ||= :aasm_state
73:           end
74:           @aasm_column
75:         end