提交 4417a19b 编写于 作者: Y Yehuda Katz

Small changes to get 1.9 passing (for the most part)

上级 80f1f863
......@@ -36,7 +36,7 @@ def controller_name
# ==== Returns
# String
def self.controller_path
@controller_path ||= self.name.sub(/Controller$/, '').underscore
@controller_path ||= name && name.sub(/Controller$/, '').underscore
end
# Delegates to the class' #controller_path
......
......@@ -10,7 +10,7 @@ def symbols
%w(<< concat shift unshift push pop []= clear compact! collect!
delete delete_at delete_if flatten! map! insert reject! reverse!
replace slice! sort! uniq!).each do |method|
define_method(method) { @symbols = nil; super }
define_method(method) {|*args| @symbols = nil; super(*args) }
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册