diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-11-12 12:39:07 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-11-12 12:39:07 -0200 |
commit | 1361b676d3a51aa0fca299f432e75032dd29a9d9 (patch) | |
tree | dec4c606791c6edf394b87a82cf119b5ab1d9d13 | |
parent | 2a31ea5545dbbeeafaaabb622a3053e361018898 (diff) | |
parent | b1879124a82b34168412ac699cf6f654e005c4d6 (diff) | |
download | rails-1361b676d3a51aa0fca299f432e75032dd29a9d9.tar.gz rails-1361b676d3a51aa0fca299f432e75032dd29a9d9.tar.bz2 rails-1361b676d3a51aa0fca299f432e75032dd29a9d9.zip |
Merge pull request #17596 from aderyabin/follow_convension
Follow the coding conventions
-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 |