Permalink
Browse files

use Rails.root instead RAILS_ROOT in rake task for Rails 3

  • Loading branch information...
1 parent ca178cf commit 89ac39bd73a37faa055a9ce83a2e93802d3b4ef3 Herman Moreno Valle committed Jan 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tasks/yaml_db_tasks.rake
@@ -11,7 +11,7 @@ namespace :db do
end
def dump_dir(dir = "")
- "#{RAILS_ROOT}/db#{dir}"
+ "#{Rails.root}/db#{dir}"
end
desc "Dump contents of database to db/data.extension (defaults to yaml)"

0 comments on commit 89ac39b

Please sign in to comment.