State change should not trigger callbacks
-
Travis Tilley
events can be called with or without a bang to determine whether or not persistence should be used:
define_method("#{name.to_s}!") do |*args| aasm_fire_event(name, true, *args) end define_method("#{name.to_s}") do |*args| aasm_fire_event(name, false, *args) endas for bypassing callbacks... i'm not sure that's wise for any scenario other than what you're describing.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.