提交 b1879124 编写于 作者: A Andrey Deryabin

Follow the coding conventions

上级 2a31ea55
......@@ -139,7 +139,7 @@ def scope_attributes? # :nodoc:
# Article.published.featured.latest_article
# Article.featured.titles
def scope(name, body, &block)
unless body.respond_to?:call
unless body.respond_to?(:call)
raise ArgumentError, 'The scope body needs to be callable.'
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册