Permalink
Browse files

change function def self.table_name to self.table_name

change def self.primary_key to self.primary_key

change def self.primary_key to self.primary_key
  • Loading branch information...
1 parent 4dd47fb commit 5a2a703fe81e015288243b8e9c53dac6557c04fd Rajarshi Das committed Jul 25, 2013
Showing with 3 additions and 5 deletions.
  1. +2 −2 activerecord/test/models/auto_id.rb
  2. +1 −3 activerecord/test/models/movie.rb
@@ -1,4 +1,4 @@
class AutoId < ActiveRecord::Base
- def self.table_name () "auto_id_tests" end
- def self.primary_key () "auto_id" end
+ self.table_name = "auto_id_tests"
+ self.primary_key = "auto_id"
end
@@ -1,5 +1,3 @@
class Movie < ActiveRecord::Base
- def self.primary_key
- "movieid"
- end
+ self.primary_key = "movieid"
end

0 comments on commit 5a2a703

Please sign in to comment.