aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-09-17 09:43:46 +0400
committerXavier Noria <fxn@hashref.com>2012-09-17 17:32:18 +0200
commit4363368e857147a368be9afa4b9fcce7613564d7 (patch)
tree759ce84a6df1ddf7decadd6a72853f9a47f81189 /actionpack
parenta2194990fa68ca1d1102da4fcd46e29bff34b1ae (diff)
downloadrails-4363368e857147a368be9afa4b9fcce7613564d7.tar.gz
rails-4363368e857147a368be9afa4b9fcce7613564d7.tar.bz2
rails-4363368e857147a368be9afa4b9fcce7613564d7.zip
removes unnecessary self
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/metal.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb
index b38f990efa..2a9afccf7d 100644
--- a/actionpack/lib/action_controller/metal.rb
+++ b/actionpack/lib/action_controller/metal.rb
@@ -112,7 +112,7 @@ module ActionController
# ==== 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>