提交 4363368e 编写于 作者: X Xavier Noria

removes unnecessary self

上级 a2194990
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册