class AASM::Base

redefine the initialize method because it was was doing a very expensive (for Opal) class_eval with a string (instead of a block). While we are redefining this the unnecessary options have been removed.

Attributes

state_machine[R]

Public Class Methods

new(klass, options={}, &block) click to toggle source
# File lib/opal/aasm.rb, line 118
def initialize(klass, options={}, &block)
  @klass = klass
  @state_machine = AASM::StateMachine[@klass]
  @options = options

  # let's cry if the transition is invalid
  configure :whiny_transitions, true
  
end