Skip to content

Commit

Permalink
use the new form to request the current state
Browse files Browse the repository at this point in the history
  • Loading branch information
alto committed May 15, 2013
1 parent 97f898e commit 8a65d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aasm/base.rb
Expand Up @@ -30,7 +30,7 @@ def state(name, 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}")
Expand Down

0 comments on commit 8a65d19

Please sign in to comment.