Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removes unnecessary self

  • Loading branch information...
commit 4363368e857147a368be9afa4b9fcce7613564d7 1 parent a219499
@fxn fxn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/metal.rb
View
2  actionpack/lib/action_controller/metal.rb
@@ -112,7 +112,7 @@ def env
# ==== Returns
# * <tt>string</tt>
def self.controller_name
- @controller_name ||= self.name.demodulize.sub(/Controller$/, '').underscore
+ @controller_name ||= name.demodulize.sub(/Controller$/, '').underscore
end
# Delegates to the class' <tt>controller_name</tt>
Please sign in to comment.
Something went wrong with that request. Please try again.