提交 654b33af 编写于 作者: Y Yehuda Katz

New semantics eliminate the need for __send__

上级 a0fc92f4
......@@ -79,8 +79,8 @@ module ClassMethods
# do not apply this verification to the actions specified in the associated
# array (may also be a single value).
def verify(options={})
before_filter :only => options[:only], :except => options[:except] do |c|
c.__send__ :verify_action, options
before_filter :only => options[:only], :except => options[:except] do
verify_action options
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册