id=(value)
Sets the primary key value.
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 25 def id=(value) sync_with_transaction_state write_attribute(self.class.primary_key, value) if self.class.primary_key end