mirror of https://github.com/rails/rails
removes unnecessary self
This commit is contained in:
parent
a2194990fa
commit
4363368e85
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue