diff options
author | Ankit Gupta <ankit.gupta8898@gmail.com> | 2013-07-28 15:00:55 +0100 |
---|---|---|
committer | Ankit Gupta <ankit.gupta8898@gmail.com> | 2013-07-28 15:00:55 +0100 |
commit | 408b798240cce71688896d9509f45221fc548696 (patch) | |
tree | e4f71883e13924cb657289b6002d63253aa45a6d | |
parent | b6c0639825a2ed723a00c32acec87bfeffc1b9ed (diff) | |
download | rails-408b798240cce71688896d9509f45221fc548696.tar.gz rails-408b798240cce71688896d9509f45221fc548696.tar.bz2 rails-408b798240cce71688896d9509f45221fc548696.zip |
Cleanup of class_name
Don't think class name is needed as by default belongs_to :select will be linked to Select class.
-rw-r--r-- | activerecord/test/cases/adapters/mysql/reserved_word_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/cases/adapters/mysql2/reserved_word_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/mysql/reserved_word_test.rb b/activerecord/test/cases/adapters/mysql/reserved_word_test.rb index 4cf4bc4c61..8eb9565963 100644 --- a/activerecord/test/cases/adapters/mysql/reserved_word_test.rb +++ b/activerecord/test/cases/adapters/mysql/reserved_word_test.rb @@ -2,7 +2,7 @@ require "cases/helper" class Group < ActiveRecord::Base Group.table_name = 'group' - belongs_to :select, :class_name => 'Select' + belongs_to :select has_one :values end diff --git a/activerecord/test/cases/adapters/mysql2/reserved_word_test.rb b/activerecord/test/cases/adapters/mysql2/reserved_word_test.rb index e76617b845..1a82308176 100644 --- a/activerecord/test/cases/adapters/mysql2/reserved_word_test.rb +++ b/activerecord/test/cases/adapters/mysql2/reserved_word_test.rb @@ -2,7 +2,7 @@ require "cases/helper" class Group < ActiveRecord::Base Group.table_name = 'group' - belongs_to :select, :class_name => 'Select' + belongs_to :select has_one :values end |