Permalink
Browse files

Merge pull request #11952 from lmarcetic/master

Remove set_primary_key, replace with primary_key=
  • Loading branch information...
1 parent 4c92851 commit 8487692903c05e7ba94b7b02c19e96589be091d4 @guilleiguaran guilleiguaran committed with senny Aug 21, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 guides/source/active_record_basics.md
@@ -188,11 +188,11 @@ end
```
It's also possible to override the column that should be used as the table's
-primary key using the `ActiveRecord::Base.set_primary_key` method:
+primary key using the `ActiveRecord::Base.primary_key=` method:
```ruby
class Product < ActiveRecord::Base
- set_primary_key "product_id"
+ self.primary_key = "product_id"
end
```

0 comments on commit 8487692

Please sign in to comment.