提交 ae0b4728 编写于 作者: A Arun Agrawal

warning removed: shadowing outer local variable - klass

上级 81f6bcb6
......@@ -7,8 +7,8 @@ module ActiveRecord
class DynamicFinderMatch
def self.match(method)
method = method.to_s
klass = [FindBy, FindByBang, FindOrInitializeCreateBy].find do |klass|
klass.matches?(method)
klass = [FindBy, FindByBang, FindOrInitializeCreateBy].find do |_klass|
_klass.matches?(method)
end
klass.new(method) if klass
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册