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:
commit
1361b676d3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue