aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/railties
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2013-12-30 09:59:13 +0100
committerPiotr Sarnacki <drogus@gmail.com>2013-12-30 09:59:13 +0100
commit3d865c1bcdb5a9c1ecf7a968312752d8f6178f8b (patch)
tree4d45ca67ba5e1df43d9c6513527fce55c6944d11 /activerecord/lib/active_record/railties
parent2be2003d06a547d3acd50f568e54013836f40d22 (diff)
downloadrails-3d865c1bcdb5a9c1ecf7a968312752d8f6178f8b.tar.gz
rails-3d865c1bcdb5a9c1ecf7a968312752d8f6178f8b.tar.bz2
rails-3d865c1bcdb5a9c1ecf7a968312752d8f6178f8b.zip
Remove deprecation warning for FIXTURES_PATH
FIXTURES_PATH has a bit different case than DatabaseTasks.fixtures_path, which was added along with deprecation. A use case for FIXTURES_PATH could be loading fixtures from a different directory just for a given test run. The implementation is fairly simple, so leaving it as it is won't hurt.
Diffstat (limited to 'activerecord/lib/active_record/railties')
-rw-r--r--activerecord/lib/active_record/railties/databases.rake6
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake
index 90dfc177e5..4b769aa11c 100644
--- a/activerecord/lib/active_record/railties/databases.rake
+++ b/activerecord/lib/active_record/railties/databases.rake
@@ -179,9 +179,6 @@ db_namespace = namespace :db do
require 'active_record/fixtures'
base_dir = if ENV['FIXTURES_PATH']
- STDERR.puts "Using FIXTURES_PATH env variable is deprecated, please use " +
- "ActiveRecord::Tasks::DatabaseTasks.fixtures_path = '/path/to/fixtures' " +
- "instead."
File.join [Rails.root, ENV['FIXTURES_PATH'] || %w{test fixtures}].flatten
else
ActiveRecord::Tasks::DatabaseTasks.fixtures_path
@@ -204,9 +201,6 @@ db_namespace = namespace :db do
puts %Q(The fixture ID for "#{label}" is #{ActiveRecord::FixtureSet.identify(label)}.) if label
base_dir = if ENV['FIXTURES_PATH']
- STDERR.puts "Using FIXTURES_PATH env variable is deprecated, please use " +
- "ActiveRecord::Tasks::DatabaseTasks.fixtures_path = '/path/to/fixtures' " +
- "instead."
File.join [Rails.root, ENV['FIXTURES_PATH'] || %w{test fixtures}].flatten
else
ActiveRecord::Tasks::DatabaseTasks.fixtures_path