From 0bee73f299ec2786e03e648ccb6e57f19bf2889d Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 11 Jul 2020 01:21:11 +0000 Subject: [PATCH] remove spaces inside {} of lib/redmine/sudo_mode.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19878 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/sudo_mode.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/redmine/sudo_mode.rb b/lib/redmine/sudo_mode.rb index 523483531..321337a99 100644 --- a/lib/redmine/sudo_mode.rb +++ b/lib/redmine/sudo_mode.rb @@ -32,10 +32,10 @@ module Redmine # # taken from https://github.com/brianhempel/hash_to_hidden_fields def hash_to_hidden_fields(hash) - cleaned_hash = hash.to_unsafe_h.reject { |k, v| v.nil? } + cleaned_hash = hash.to_unsafe_h.reject {|k, v| v.nil?} pairs = cleaned_hash.to_query.split(Rack::Utils::DEFAULT_SEP) tags = pairs.map do |pair| - key, value = pair.split('=', 2).map { |str| Rack::Utils.unescape(str) } + key, value = pair.split('=', 2).map {|str| Rack::Utils.unescape(str)} hidden_field_tag(key, value) end tags.join("\n").html_safe @@ -111,8 +111,8 @@ module Redmine # a simple 'render "sudo_mode/new"' works when used directly inside an # action, but not when called from a before_action: respond_to do |format| - format.html { render 'sudo_mode/new' } - format.js { render 'sudo_mode/new' } + format.html {render 'sudo_mode/new'} + format.js {render 'sudo_mode/new'} end end -- 2.39.5