]> source.dussan.org Git - redmine.git/commitdiff
remove spaces inside {} of lib/redmine/sudo_mode.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jul 2020 01:21:11 +0000 (01:21 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jul 2020 01:21:11 +0000 (01:21 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19878 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/sudo_mode.rb

index 523483531ca3daeee30c53916cf5576817be1d04..321337a99e9f531b5bb6bb513e9c1266f0e1e221 100644 (file)
@@ -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