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