calling rake tasks with parameters

namespace :backup do

task :dump_dynamic_tables => :environment do

ENV[TABLES] = 'users'
Rake::Task['db:fixtures:export_for_tables'].invoke

end

end


Leave a Reply

Formatting: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>