module AASM

Work around a couple of incompatibilities with Opal and AASM

Public Class Methods

included(base) click to toggle source

redefine because of opal breaks when doing a super in this case

Calls superclass method
# File lib/opal/aasm.rb, line 93
def self.included(base)
  base.extend AASM::ClassMethods
  AASM::StateMachine[base] ||= AASM::StateMachine.new
  AASM::Persistence.load_persistence(base)  
  super rescue nil #<--------------------------------added because of bug in opal
end