# File lib/state_machine/integrations/active_record.rb, line 286 def write(object, attribute, value) result = super object.send("#{self.attribute}_will_change!") if attribute == :state && object.respond_to?("#{self.attribute}_will_change!") result end