From 48ee1e793eba9bdded2869471b50f18f8cd65f2f Mon Sep 17 00:00:00 2001 From: Rajarshi Das Date: Thu, 25 Jul 2013 16:24:12 +0530 Subject: 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 --- activerecord/test/models/auto_id.rb | 4 ++-- activerecord/test/models/movie.rb | 4 +--- 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 -- cgit v1.2.3