aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/test_case.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-09-22 11:45:41 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2010-09-22 18:08:03 -0300
commit8c97f49f2e63794514b563ba4078692c0be0c335 (patch)
tree0fa0821e78a5d08ebc2797575d103c41712527d2 /actionpack/lib/action_view/test_case.rb
parent6d8a6700a76470b791f3e76fe4ca5d5f179daa1d (diff)
downloadrails-8c97f49f2e63794514b563ba4078692c0be0c335.tar.gz
rails-8c97f49f2e63794514b563ba4078692c0be0c335.tar.bz2
rails-8c97f49f2e63794514b563ba4078692c0be0c335.zip
Refactor decode_credentials to avoid inject and use map instead.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'actionpack/lib/action_view/test_case.rb')
-rw-r--r--actionpack/lib/action_view/test_case.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/test_case.rb b/actionpack/lib/action_view/test_case.rb
index 34ed76707e..ff35fb7df4 100644
--- a/actionpack/lib/action_view/test_case.rb
+++ b/actionpack/lib/action_view/test_case.rb
@@ -189,7 +189,7 @@ module ActionView
end
def _assigns
- _instance_variables.map { |var| [ var[1..-1].to_sym, instance_variable_get(var)] }
+ _instance_variables.map { |var| [var[1..-1].to_sym, instance_variable_get(var)] }
end
def _routes