lib/simple_states.rb in simple_states-0.0.7 vs lib/simple_states.rb in simple_states-0.0.8

- old
+ new

@@ -1,7 +1,7 @@ require 'active_support/concern' -require 'active_support/core_ext/class/inheritable_attributes' +require 'active_support/core_ext/class/attribute' require 'active_support/core_ext/kernel/singleton_class' require 'active_support/core_ext/object/try' module SimpleStates class TransitionException < RuntimeError; end @@ -10,10 +10,10 @@ autoload :States, 'simple_states/states' extend ActiveSupport::Concern included do - class_inheritable_accessor :state_names, :initial_state, :events + class_attribute :state_names, :initial_state, :events self.initial_state = :created self.events = [] end module ClassMethods