diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-09-06 07:56:33 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-09-06 07:56:33 -0300 |
commit | faccffed194a895a64f2e90e2a31b54b66b7d986 (patch) | |
tree | 3bd4128aff94f3f565fa8bdb7ebf090de0a97785 /actionpack/lib/action_controller | |
parent | 5f9ff8c3fcb4ccafe5a4ed51e9d6833514c27457 (diff) | |
download | rails-faccffed194a895a64f2e90e2a31b54b66b7d986.tar.gz rails-faccffed194a895a64f2e90e2a31b54b66b7d986.tar.bz2 rails-faccffed194a895a64f2e90e2a31b54b66b7d986.zip |
Do not use instance variables if they are not reused elsewhere
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal/renderers.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal/renderers.rb b/actionpack/lib/action_controller/metal/renderers.rb index abed6e53cc..62a3844b04 100644 --- a/actionpack/lib/action_controller/metal/renderers.rb +++ b/actionpack/lib/action_controller/metal/renderers.rb @@ -8,8 +8,7 @@ module ActionController class MissingRenderer < LoadError def initialize(format) - @format = format - super("No renderer defined for format: #{@format}") + super "No renderer defined for format: #{format}" end end |