diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-17 11:22:06 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-17 11:22:06 +0000 |
commit | caefd6d1157e75dd8474c82ce9f478f4b3451ee8 (patch) | |
tree | 1aeb8d7394d95c698a763ac499e3c7713752a343 /lib/redmine/plugin.rb | |
parent | 2c83540108e727deee5652eb21c99c83eb6d2b5f (diff) | |
download | redmine-caefd6d1157e75dd8474c82ce9f478f4b3451ee8.tar.gz redmine-caefd6d1157e75dd8474c82ce9f478f4b3451ee8.zip |
code cleanup: rubocop: fix Layout/ElseAlignment in lib/redmine/plugin.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18703 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/plugin.rb')
-rw-r--r-- | lib/redmine/plugin.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb index b3982fcfd..51811ac9b 100644 --- a/lib/redmine/plugin.rb +++ b/lib/redmine/plugin.rb @@ -501,22 +501,22 @@ module Redmine class MigrationContext < ActiveRecord::MigrationContext def up(target_version = nil) - selected_migrations = if block_given? - migrations.select { |m| yield m } - else - migrations - end - + selected_migrations = + if block_given? + migrations.select { |m| yield m } + else + migrations + end Migrator.new(:up, selected_migrations, target_version).migrate end def down(target_version = nil) - selected_migrations = if block_given? - migrations.select { |m| yield m } - else - migrations - end - + selected_migrations = + if block_given? + migrations.select { |m| yield m } + else + migrations + end Migrator.new(:down, selected_migrations, target_version).migrate end |