aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2019-07-31 17:26:43 +0900
committerAkira Matsuda <ronnie@dio.jp>2019-07-31 17:41:34 +0900
commit5ae814d016cfa1fdc4211d2e5c618a233c6c9200 (patch)
tree0e8d60fba27d1c6be24ff1dea9dbfff9b8735787 /actionpack
parent7e299ce230b3928609415a9797c6abef00561c45 (diff)
downloadrails-5ae814d016cfa1fdc4211d2e5c618a233c6c9200.tar.gz
rails-5ae814d016cfa1fdc4211d2e5c618a233c6c9200.tar.bz2
rails-5ae814d016cfa1fdc4211d2e5c618a233c6c9200.zip
Reduce Array assignment by not giving a name for unused `*args`
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/abstract_controller/callbacks.rb2
-rw-r--r--actionpack/lib/action_controller/metal/instrumentation.rb6
-rw-r--r--actionpack/lib/action_controller/metal/params_wrapper.rb2
-rw-r--r--actionpack/lib/action_controller/metal/rescue.rb2
4 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/lib/abstract_controller/callbacks.rb b/actionpack/lib/abstract_controller/callbacks.rb
index 42bab411d2..983d65f944 100644
--- a/actionpack/lib/abstract_controller/callbacks.rb
+++ b/actionpack/lib/abstract_controller/callbacks.rb
@@ -37,7 +37,7 @@ module AbstractController
# Override <tt>AbstractController::Base#process_action</tt> to run the
# <tt>process_action</tt> callbacks around the normal behavior.
- def process_action(*args)
+ def process_action(*)
run_callbacks(:process_action) do
super
end
diff --git a/actionpack/lib/action_controller/metal/instrumentation.rb b/actionpack/lib/action_controller/metal/instrumentation.rb
index 4c28a45c69..9ef70f769d 100644
--- a/actionpack/lib/action_controller/metal/instrumentation.rb
+++ b/actionpack/lib/action_controller/metal/instrumentation.rb
@@ -16,7 +16,7 @@ module ActionController
attr_internal :view_runtime
- def process_action(*args)
+ def process_action(*)
raw_payload = {
controller: self.class.name,
action: action_name,
@@ -38,7 +38,7 @@ module ActionController
end
end
- def render(*args)
+ def render(*)
render_output = nil
self.view_runtime = cleanup_view_runtime do
Benchmark.ms { render_output = super }
@@ -59,7 +59,7 @@ module ActionController
end
end
- def redirect_to(*args)
+ def redirect_to(*)
ActiveSupport::Notifications.instrument("redirect_to.action_controller") do |payload|
result = super
payload[:status] = response.status
diff --git a/actionpack/lib/action_controller/metal/params_wrapper.rb b/actionpack/lib/action_controller/metal/params_wrapper.rb
index 150ae2666c..15c9937405 100644
--- a/actionpack/lib/action_controller/metal/params_wrapper.rb
+++ b/actionpack/lib/action_controller/metal/params_wrapper.rb
@@ -240,7 +240,7 @@ module ActionController
# Performs parameters wrapping upon the request. Called automatically
# by the metal call stack.
- def process_action(*args)
+ def process_action(*)
_perform_parameter_wrapping if _wrapper_enabled?
super
end
diff --git a/actionpack/lib/action_controller/metal/rescue.rb b/actionpack/lib/action_controller/metal/rescue.rb
index 44f7fb7a07..59704f2797 100644
--- a/actionpack/lib/action_controller/metal/rescue.rb
+++ b/actionpack/lib/action_controller/metal/rescue.rb
@@ -18,7 +18,7 @@ module ActionController #:nodoc:
end
private
- def process_action(*args)
+ def process_action(*)
super
rescue Exception => exception
request.env["action_dispatch.show_detailed_exceptions"] ||= show_detailed_exceptions?