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 132190f commit 48ee1e793eba9bdded2869471b50f18f8cd65f2f Rajarshi Das committed with arunagw 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 48ee1e7

Please sign in to comment.