lib/aasm/base.rb in aasm-3.0.17 vs lib/aasm/base.rb in aasm-3.0.18

- old
+ new

@@ -28,10 +28,10 @@ # @clazz.aasm_state(name, options) @state_machine.add_state(name, @clazz, options) @state_machine.initial_state = name if options[:initial] || !@state_machine.initial_state @clazz.send(:define_method, "#{name.to_s}?") do - aasm_current_state == name + aasm.current_state == name end unless @clazz.const_defined?("STATE_#{name.to_s.upcase}") @clazz.const_set("STATE_#{name.to_s.upcase}", name) end