diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-01-09 19:58:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-09 19:58:22 +0100 |
commit | 3bc747bd8676dc940b531067e2861dcd4ac28efc (patch) | |
tree | 6f38def712f41f26a4e6d1a40afa65a52000560f /activerecord/test/cases/associations | |
parent | 2b555ee9d7b3b246cc1660de799e3fb83b8fb84f (diff) | |
parent | 8312a0d22212798864f142b5a94805e0baa6c562 (diff) | |
download | rails-3bc747bd8676dc940b531067e2861dcd4ac28efc.tar.gz rails-3bc747bd8676dc940b531067e2861dcd4ac28efc.tar.bz2 rails-3bc747bd8676dc940b531067e2861dcd4ac28efc.zip |
Merge pull request #27551 from kirs/deprecate-class-name-as-class
Deprecate reflection class name to accept a class
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb index 54fb61d6a5..efd2124679 100644 --- a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb @@ -86,8 +86,10 @@ class DeveloperWithSymbolClassName < Developer has_and_belongs_to_many :projects, class_name: :ProjectWithSymbolsForKeys end -class DeveloperWithConstantClassName < Developer - has_and_belongs_to_many :projects, class_name: ProjectWithSymbolsForKeys +ActiveSupport::Deprecation.silence do + class DeveloperWithConstantClassName < Developer + has_and_belongs_to_many :projects, class_name: ProjectWithSymbolsForKeys + end end class DeveloperWithExtendOption < Developer |