Skip to content

Commit

Permalink
change function def self.table_name to self.table_name
Browse files Browse the repository at this point in the history
change def self.primary_key to self.primary_key

change def self.primary_key to self.primary_key
  • Loading branch information
Rajarshi Das committed Jul 25, 2013
1 parent 4dd47fb commit 5a2a703
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/models/auto_id.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
4 changes: 1 addition & 3 deletions activerecord/test/models/movie.rb
@@ -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.