summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-17 11:22:06 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-17 11:22:06 +0000
commitcaefd6d1157e75dd8474c82ce9f478f4b3451ee8 (patch)
tree1aeb8d7394d95c698a763ac499e3c7713752a343 /lib
parent2c83540108e727deee5652eb21c99c83eb6d2b5f (diff)
downloadredmine-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')
-rw-r--r--lib/redmine/plugin.rb24
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