Permalink
Browse files

Use concat to avoid allocating additional array

  • Loading branch information...
1 parent 98ec4eb commit 0b4507a26f7c4807ea14ce70c41033c9868f83e3 @lukaszx0 lukaszx0 committed Jul 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionview/lib/action_view/rendering.rb
@@ -107,7 +107,7 @@ def _render_template(options) #:nodoc:
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

0 comments on commit 0b4507a

Please sign in to comment.