lib/aasm/base.rb in aasm-4.0.3 vs lib/aasm/base.rb in aasm-4.0.4
- old
+ new
@@ -65,10 +65,10 @@
end
end
# define an event
def event(name, options={}, &block)
- @state_machine.events[name] = AASM::Event.new(name, options, &block)
+ @state_machine.events[name] = AASM::Core::Event.new(name, options, &block)
# an addition over standard aasm so that, before firing an event, you can ask
# may_event? and get back a boolean that tells you whether the guard method
# on the transition will let this happen.
@klass.send(:define_method, "may_#{name.to_s}?") do |*args|