Skip to content

Commit

Permalink
Corrected the name of the dumper task.
Browse files Browse the repository at this point in the history
  • Loading branch information
james2m committed Sep 15, 2011
1 parent 33f6fde commit 71ce98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/seed_dump.rake → lib/tasks/seed_dumper.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace :db do
namespace :seed do
desc 'Dump records from the database into db/seeds.rb'
task :dump => :environment do
Dir.glob(RAILS_ROOT + '/app/models/*.rb').each { |file| require file }
Dir.glob(Rails.root + '/app/models/*.rb').each { |file| require file }
models = Object.subclasses_of(ActiveRecord::Base)

models.each { |model| SeedDumper::Writer.write_data(model.name, SeedDumper::Fetcher.fetch_data(model) ) }
Expand Down

0 comments on commit 71ce98e

Please sign in to comment.