Permalink
Browse files

Do not use instance variables if they are not reused elsewhere

  • Loading branch information...
carlosantoniodasilva committed Sep 6, 2013
1 parent 5f9ff8c commit faccffed194a895a64f2e90e2a31b54b66b7d986
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_controller/metal/renderers.rb
@@ -8,8 +8,7 @@ def self.add_renderer(key, &block)
class MissingRenderer < LoadError
def initialize(format)
- @format = format
- super("No renderer defined for format: #{@format}")
+ super "No renderer defined for format: #{format}"
end
end

0 comments on commit faccffe

Please sign in to comment.