1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #17596 from aderyabin/follow_convension

Follow the coding conventions
This commit is contained in:
Rafael Mendonça França 2014-11-12 12:39:07 -02:00
commit 1361b676d3

View file

@ -139,7 +139,7 @@ module ActiveRecord
# 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