From 32e94a488fb68dc169ce89a22cec46527d6ffe5b Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 6 Nov 2013 13:22:37 -0800 Subject: instance_variables returns symbols, so we should use symbols in our list --- actionpack/lib/abstract_controller/rendering.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb index 6f6079d3c5..23354985f9 100644 --- a/actionpack/lib/abstract_controller/rendering.rb +++ b/actionpack/lib/abstract_controller/rendering.rb @@ -58,7 +58,7 @@ module AbstractController DEFAULT_PROTECTED_INSTANCE_VARIABLES = %w( @_action_name @_response_body @_formats @_prefixes @_config @_view_context_class @_view_renderer @_lookup_context - ) + ).map(&:to_sym) # This method should return a hash with assigns. # You can overwrite this configuration per controller. -- cgit v1.2.3