Ignorando callback de state_event no Rails 3.0
callback_name = “fire_#{state}_state_after_save”self.class.skip_callback(:save, :after, “(#{callback_name})”)saveself.class.set_callback(:save, :after, callback_name, :if => “state_event_if_#{state}_changed”)
Continuar lendo