Commit e0712cb5e8594811f618e3fb6279bfbdfb24520c

Authored by Arthur Esposte
1 parent 57a7832e

Small fix in create_categories task

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/tasks/create_categories.rake
@@ -2,7 +2,7 @@ namespace :software do @@ -2,7 +2,7 @@ namespace :software do
2 desc "Create software categories" 2 desc "Create software categories"
3 task :create_categories => :environment do 3 task :create_categories => :environment do
4 Environment.all.each do |env| 4 Environment.all.each do |env|
5 - if env.plugin_enabled?("MpogSoftware") 5 + if env.plugin_enabled?("MpogSoftwarePlugin")
6 software = Category.create!(:name => _("Software"), :environment => env) 6 software = Category.create!(:name => _("Software"), :environment => env)
7 Category.create!(:name => _("Agriculture, Fisheries and Extraction"), :environment => env, :parent => software) 7 Category.create!(:name => _("Agriculture, Fisheries and Extraction"), :environment => env, :parent => software)
8 Category.create!(:name => _("Science, Information and Communication"), :environment => env, :parent => software) 8 Category.create!(:name => _("Science, Information and Communication"), :environment => env, :parent => software)