Remove deprecated branch on the scope method.

The deprecation message was removed on 50cbc03d but the code was not.
上级 d86ccec0
......@@ -142,12 +142,8 @@ def scope(name, body, &block)
extension = Module.new(&block) if block
singleton_class.send(:define_method, name) do |*args|
if body.respond_to?(:call)
scope = all.scoping { body.call(*args) }
scope = scope.extending(extension) if extension
else
scope = body
end
scope = all.scoping { body.call(*args) }
scope = scope.extending(extension) if extension
scope || all
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册