aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-01-16 12:39:26 -0800
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-01-16 12:39:26 -0800
commitc253b8e43b5bbf574eab7805340c6ea0bbc4cdf3 (patch)
tree971d4cc4c6b33554c8ec1cb9347f0da3b036b783 /activerecord
parent44c51fc9cc7a0cdcf8b657e1900eb141083ef683 (diff)
parente47203dfdebf797d3325a240dccf4ab604915179 (diff)
downloadrails-c253b8e43b5bbf574eab7805340c6ea0bbc4cdf3.tar.gz
rails-c253b8e43b5bbf574eab7805340c6ea0bbc4cdf3.tar.bz2
rails-c253b8e43b5bbf574eab7805340c6ea0bbc4cdf3.zip
Merge pull request #13734 from tjschuck/fixture_class_name_deprecation_warning
Update fixture class name deprecation warning to give more information about caller
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/fixtures.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb
index fee3f51d9e..297792aeec 100644
--- a/activerecord/lib/active_record/fixtures.rb
+++ b/activerecord/lib/active_record/fixtures.rb
@@ -462,7 +462,7 @@ module ActiveRecord
@class_names.delete_if { |k,klass|
unless klass.is_a? Class
klass = klass.safe_constantize
- ActiveSupport::Deprecation.warn("The ability to pass in strings as a class name will be removed in Rails 4.2, consider using the class itself instead.")
+ ActiveSupport::Deprecation.warn("The ability to pass in strings as a class name to `set_fixture_class` will be removed in Rails 4.2. Use the class itself instead.")
end
!insert_class(@class_names, k, klass)
}
@@ -568,7 +568,7 @@ module ActiveRecord
@model_class = nil
if class_name.is_a?(String)
- ActiveSupport::Deprecation.warn("The ability to pass in strings as a class name will be removed in Rails 4.2, consider using the class itself instead.")
+ ActiveSupport::Deprecation.warn("The ability to pass in strings as a class name to `FixtureSet.new` will be removed in Rails 4.2. Use the class itself instead.")
end
if class_name.is_a?(Class) # TODO: Should be an AR::Base type class, or any?