summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-07-11 01:21:11 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-07-11 01:21:11 +0000
commit0bee73f299ec2786e03e648ccb6e57f19bf2889d (patch)
treecdf4d10e50c9cfc9854f8ec5f4df5c97ce2c1d8a /lib/redmine
parent4d3086ef1f6b65b9146e21ca70cb685716e4f952 (diff)
downloadredmine-0bee73f299ec2786e03e648ccb6e57f19bf2889d.tar.gz
redmine-0bee73f299ec2786e03e648ccb6e57f19bf2889d.zip
remove spaces inside {} of lib/redmine/sudo_mode.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19878 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/sudo_mode.rb8
1 files 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