# File lib/state_machine/integrations/data_mapper.rb, line 256 def write(object, attribute, value) result = super if attribute == :state && owner_class.properties.detect {|property| property.name == self.attribute} if ::DataMapper::VERSION =~ /^(0\.\d\.)/ # Match anything < 0.10 object.original_values[self.attribute] = "#{value}-ignored" else object.original_attributes[owner_class.properties[self.attribute]] = "#{value}-ignored" end end result end