From 8db9ffbd8bda68a98ac5896dc0d5f3bfba4c7b70 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 4 Mar 2012 11:00:28 +0000 Subject: [PATCH] set svn:eol-style native lib/tasks/migrate_plugins.rake git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9070 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tasks/migrate_plugins.rake | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/tasks/migrate_plugins.rake b/lib/tasks/migrate_plugins.rake index 61df9c3f0..0516d8306 100644 --- a/lib/tasks/migrate_plugins.rake +++ b/lib/tasks/migrate_plugins.rake @@ -1,15 +1,15 @@ -namespace :db do - desc 'Migrates installed plugins.' - task :migrate_plugins => :environment do - if Rails.respond_to?('plugins') - Rails.plugins.each do |plugin| - next unless plugin.respond_to?('migrate') - puts "Migrating #{plugin.name}..." - plugin.migrate - end - else - puts "Undefined method plugins for Rails!" - puts "Make sure engines plugin is installed." - end - end -end +namespace :db do + desc 'Migrates installed plugins.' + task :migrate_plugins => :environment do + if Rails.respond_to?('plugins') + Rails.plugins.each do |plugin| + next unless plugin.respond_to?('migrate') + puts "Migrating #{plugin.name}..." + plugin.migrate + end + else + puts "Undefined method plugins for Rails!" + puts "Make sure engines plugin is installed." + end + end +end