aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRajarshi Das <rajarshid@cybage.com>2013-07-25 16:24:12 +0530
committerArun Agrawal <arunagw@gmail.com>2013-09-10 19:49:32 +0200
commit48ee1e793eba9bdded2869471b50f18f8cd65f2f (patch)
tree4ecf754170a359993956c0c8a2f13449af55db21 /activerecord/test
parent132190f6326b149b44096c56fa6e60feaf09befb (diff)
downloadrails-48ee1e793eba9bdded2869471b50f18f8cd65f2f.tar.gz
rails-48ee1e793eba9bdded2869471b50f18f8cd65f2f.tar.bz2
rails-48ee1e793eba9bdded2869471b50f18f8cd65f2f.zip
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
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/models/auto_id.rb4
-rw-r--r--activerecord/test/models/movie.rb4
2 files changed, 3 insertions, 5 deletions
diff --git a/activerecord/test/models/auto_id.rb b/activerecord/test/models/auto_id.rb
index d720e2be5e..b92619f2de 100644
--- a/activerecord/test/models/auto_id.rb
+++ b/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
diff --git a/activerecord/test/models/movie.rb b/activerecord/test/models/movie.rb
index 6384b4c801..c441be2bef 100644
--- a/activerecord/test/models/movie.rb
+++ b/activerecord/test/models/movie.rb
@@ -1,5 +1,3 @@
class Movie < ActiveRecord::Base
- def self.primary_key
- "movieid"
- end
+ self.primary_key = "movieid"
end