Permalink
Browse files

Remove set_primary_key, replace with primary_key=

  • Loading branch information...
lmarcetic committed Aug 21, 2013
1 parent 3ec6cc7 commit df52eee15fc63b5224c0ff993c748ae9784b5b63
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 df52eee

Please sign in to comment.