# File lib/state_machine/integrations/active_record.rb, line 374 def define_action_helpers if action == :save if super(:create_or_update) @instance_helper_module.class_eval do define_method(:valid?) do |*args| self.class.state_machines.fire_event_attributes(self, :save, false) { super(*args) } end end end else super end end