diff options
author | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-07-23 15:06:29 +0200 |
---|---|---|
committer | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-08-25 11:39:11 +0200 |
commit | 0b4507a26f7c4807ea14ce70c41033c9868f83e3 (patch) | |
tree | d6c65cb659685349f966b9053750ad98b37a9688 /actionview/lib | |
parent | 98ec4ebfe730438024b95bca904fe324740396ad (diff) | |
download | rails-0b4507a26f7c4807ea14ce70c41033c9868f83e3.tar.gz rails-0b4507a26f7c4807ea14ce70c41033c9868f83e3.tar.bz2 rails-0b4507a26f7c4807ea14ce70c41033c9868f83e3.zip |
Use concat to avoid allocating additional array
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/rendering.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |