method
id=
rails latest stable - Class:
ActiveRecord::AttributeMethods::PrimaryKey
id=(value)public
Sets the primary key column’s value. If the primary key is composite, raises TypeError when the set value not enumerable.
id=(value)Sets the primary key column’s value. If the primary key is composite, raises TypeError when the set value not enumerable.