aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorT.J. Schuck <tj@getharvest.com>2014-01-16 14:57:22 -0500
committerT.J. Schuck <tj@getharvest.com>2014-01-16 14:57:22 -0500
commite47203dfdebf797d3325a240dccf4ab604915179 (patch)
treea7b9c2573380cc20c2e0199f39e6cbb5077a67e1 /activerecord
parent73ba2c14cd7d7dfb2d132b18c47ade995401736f (diff)
downloadrails-e47203dfdebf797d3325a240dccf4ab604915179.tar.gz
rails-e47203dfdebf797d3325a240dccf4ab604915179.tar.bz2
rails-e47203dfdebf797d3325a240dccf4ab604915179.zip
Update 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?