Permalink
Browse files

Merge pull request #10130 from Agis-/patch-2

Mark unused block parameters.
  • Loading branch information...
2 parents d695100 + 1e784cb commit 0d8a76d8d4930c142193816def09b96be26e30da @carlosantoniodasilva carlosantoniodasilva committed Apr 8, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_controller/test_case.rb
@@ -18,7 +18,7 @@ def setup_subscriptions
@_layouts = Hash.new(0)
@_files = Hash.new(0)
- ActiveSupport::Notifications.subscribe("render_template.action_view") do |name, start, finish, id, payload|
+ ActiveSupport::Notifications.subscribe("render_template.action_view") do |_name, _start, _finish, _id, payload|
path = payload[:layout]
if path
@_layouts[path] += 1
@@ -28,7 +28,7 @@ def setup_subscriptions
end
end
- ActiveSupport::Notifications.subscribe("!render_template.action_view") do |name, start, finish, id, payload|
+ ActiveSupport::Notifications.subscribe("!render_template.action_view") do |_name, _start, _finish, _id, payload|
path = payload[:virtual_path]
next unless path
partial = path =~ /^.*\/_[^\/]*$/
@@ -41,7 +41,7 @@ def setup_subscriptions
@_templates[path] += 1
end
- ActiveSupport::Notifications.subscribe("!render_template.action_view") do |name, start, finish, id, payload|
+ ActiveSupport::Notifications.subscribe("!render_template.action_view") do |_name, _start, _finish, _id, payload|
next if payload[:virtual_path] # files don't have virtual path
path = payload[:identifier]

0 comments on commit 0d8a76d

Please sign in to comment.