aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorJames McKinney <james@slashpoundbang.com>2015-05-21 14:56:53 +0200
committerJames McKinney <james@slashpoundbang.com>2015-05-21 14:56:53 +0200
commit7b2757e7be4ae2ddf0fa7cb694faf5799340f003 (patch)
tree3595987c0d46c8a90f522b581daa94415407e38e /app/controllers/application_controller.rb
parentdd289908964c8d60e33ce71724dc9e36c3beb765 (diff)
Remove all optional parentheses for method calls in Ruby
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 07956d370..a76e6630a 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -206,7 +206,7 @@ class ApplicationController < ActionController::Base
def foi_fragment_cache_part_path(param)
path = url_for(param)
id = param['id'] || param[:id]
- first_three_digits = id.to_s()[0..2]
+ first_three_digits = id.to_s[0..2]
path = path.sub("/request/", "/request/" + first_three_digits + "/")
return path
end