From 0b4507a26f7c4807ea14ce70c41033c9868f83e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Strza=C5=82kowski?= Date: Tue, 23 Jul 2013 15:06:29 +0200 Subject: Use concat to avoid allocating additional array --- actionview/lib/action_view/rendering.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionview') diff --git a/actionview/lib/action_view/rendering.rb b/actionview/lib/action_view/rendering.rb index ce43d1a180..e3d0beade3 100644 --- a/actionview/lib/action_view/rendering.rb +++ b/actionview/lib/action_view/rendering.rb @@ -107,7 +107,7 @@ module ActionView end def default_protected_instance_vars - super + [:@_view_context_class, :@_view_renderer, :@_lookup_context] + super.concat([:@_view_context_class, :@_view_renderer, :@_lookup_context]) end private -- cgit v1.2.3