lib/aasm/aasm.rb
# make sure inheritance (aka subclassing) works with AASM
make sure inheritance (aka subclassing) works with AASM
make sure inheritance ( aka subclassing ) works with AASM
def aasm(options={}, &block)
      @aasm ||= AASM::Base.new(self, options)
      @aasm.instance_eval(&block) if block 
      @aasm
    end
def aasm ( options = { } , & block ) @aasm ||= AASM :: Base . new ( self , options ) @aasm . instance_eval ( & block ) if block @aasm end
make sure inheritance (aka subclassing) works with AASM
make sure inheritance ( aka subclassing ) works with AASM
# new DSL
options
block