Skip to content

Commit

Permalink
Update Rails.root to nicer Rails.application.root
Browse files Browse the repository at this point in the history
  • Loading branch information
adacosta committed Sep 3, 2010
1 parent ce499e1 commit b044f50
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -6,7 +6,7 @@ namespace :db do

desc 'Load the seed data from db/seeds.rb'
task :seed => :environment do
seed_file = File.join(Rails.root, 'db', 'seeds.rb')
seed_file = File.join(Rails.application.root, 'db', 'seeds.rb')
load(seed_file) if File.exist?(seed_file)
end

Expand Down

0 comments on commit b044f50

Please sign in to comment.