aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAndrey Deryabin <deriabin@gmail.com>2014-11-12 15:11:36 +0300
committerAndrey Deryabin <deriabin@gmail.com>2014-11-12 15:11:36 +0300
commitb1879124a82b34168412ac699cf6f654e005c4d6 (patch)
treedec4c606791c6edf394b87a82cf119b5ab1d9d13 /activerecord
parent2a31ea5545dbbeeafaaabb622a3053e361018898 (diff)
downloadrails-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.rb2
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