diff options
author | Andrey Deryabin <deriabin@gmail.com> | 2014-11-12 15:11:36 +0300 |
---|---|---|
committer | Andrey Deryabin <deriabin@gmail.com> | 2014-11-12 15:11:36 +0300 |
commit | b1879124a82b34168412ac699cf6f654e005c4d6 (patch) | |
tree | dec4c606791c6edf394b87a82cf119b5ab1d9d13 /activerecord | |
parent | 2a31ea5545dbbeeafaaabb622a3053e361018898 (diff) | |
download | rails-b1879124a82b34168412ac699cf6f654e005c4d6.tar.gz rails-b1879124a82b34168412ac699cf6f654e005c4d6.tar.bz2 rails-b1879124a82b34168412ac699cf6f654e005c4d6.zip |
Follow the coding conventions
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/scoping/named.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/scoping/named.rb b/activerecord/lib/active_record/scoping/named.rb index ec1edf0e01..35420e6551 100644 --- a/activerecord/lib/active_record/scoping/named.rb +++ b/activerecord/lib/active_record/scoping/named.rb @@ -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 |