Permalink
Browse files

primary key

  • Loading branch information...
1 parent d8beb6d commit d44ac5ad9608b10eb1e552d02d09320e4a668046 @ncavig ncavig committed Jun 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/supermodel/base.rb
View
@@ -7,7 +7,7 @@ class << self
attr_accessor(:primary_key) #:nodoc:
def primary_key
- attributes[:primary_key] || 'id'
+ @primary_key ||= 'id'
end
def collection(&block)

0 comments on commit d44ac5a

Please sign in to comment.