From a779ea9d57b00bd3b59f5546603271c2d302247c Mon Sep 17 00:00:00 2001 From: Agis Anastasopoulos Date: Mon, 8 Apr 2013 22:13:13 +0300 Subject: Mark unused variables and make some style fixes It'd be a nice convention to mark the unused variables like this, now that Ruby 2 will issue no warnings for such vars being unused. --- actionpack/lib/action_dispatch/testing/test_process.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_dispatch/testing/test_process.rb') diff --git a/actionpack/lib/action_dispatch/testing/test_process.rb b/actionpack/lib/action_dispatch/testing/test_process.rb index e657283cec..630e6a9b78 100644 --- a/actionpack/lib/action_dispatch/testing/test_process.rb +++ b/actionpack/lib/action_dispatch/testing/test_process.rb @@ -6,7 +6,7 @@ module ActionDispatch module TestProcess def assigns(key = nil) assigns = {}.with_indifferent_access - @controller.view_assigns.each {|k, v| assigns.regular_writer(k, v)} + @controller.view_assigns.each { |k, v| assigns.regular_writer(k, v) } key.nil? ? assigns : assigns[key] end -- cgit v1.2.3