diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-24 09:59:28 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-24 09:59:28 +0100 |
commit | e6bfcc21a8b1a139dacc8d6c957bc4ab3e55c3b6 (patch) | |
tree | 672b084b7146773269528db0c127c1aee37b8287 /actionpack/lib/abstract_controller | |
parent | 39081f166023092041605144c87d7a6cd3b65102 (diff) | |
download | rails-e6bfcc21a8b1a139dacc8d6c957bc4ab3e55c3b6.tar.gz rails-e6bfcc21a8b1a139dacc8d6c957bc4ab3e55c3b6.tar.bz2 rails-e6bfcc21a8b1a139dacc8d6c957bc4ab3e55c3b6.zip |
Remove unecessary config_accessors.
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r-- | actionpack/lib/abstract_controller/rendering.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb index d95770c049..9019c07bca 100644 --- a/actionpack/lib/abstract_controller/rendering.rb +++ b/actionpack/lib/abstract_controller/rendering.rb @@ -35,7 +35,7 @@ module AbstractController include AbstractController::ViewPaths included do - config_accessor :protected_instance_variables, :instance_reader => false + class_attribute :protected_instance_variables self.protected_instance_variables = [] end @@ -59,12 +59,6 @@ module AbstractController attr_internal_writer :view_context_class - # Explicitly define protected_instance_variables so it can be - # inherited and overwritten by other modules if needed. - def protected_instance_variables - config.protected_instance_variables - end - def view_context_class @_view_context_class ||= self.class.view_context_class end |