removes unnecessary self

This commit is contained in:
Xavier Noria 2012-09-17 09:43:46 +04:00
parent a2194990fa
commit 4363368e85
1 changed files with 1 additions and 1 deletions

View File

@ -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>