aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation.rb
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-07-21 21:44:16 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-07-21 21:44:33 +0530
commitc851deff83076b8f73c77818bc04ba8e9f7ec335 (patch)
treeea1df48a19fd810727d4ccd0b7e46942d65e8152 /activerecord/lib/active_record/relation.rb
parent60df591ccaf2338f7f47de8bb28a318db2cfc397 (diff)
downloadrails-c851deff83076b8f73c77818bc04ba8e9f7ec335.tar.gz
rails-c851deff83076b8f73c77818bc04ba8e9f7ec335.tar.bz2
rails-c851deff83076b8f73c77818bc04ba8e9f7ec335.zip
minor copy edits [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/relation.rb')
-rw-r--r--activerecord/lib/active_record/relation.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb
index 3095580b66..3821c6122a 100644
--- a/activerecord/lib/active_record/relation.rb
+++ b/activerecord/lib/active_record/relation.rb
@@ -252,7 +252,7 @@ module ActiveRecord
end
end
- # Returns true if there is more than one records.
+ # Returns true if there is more than one record.
def many?
if block_given?
to_a.many? { |*block_args| yield(*block_args) }
@@ -263,8 +263,6 @@ module ActiveRecord
# Scope all queries to the current scope.
#
- # ==== Example
- #
# Comment.where(:post_id => 1).scoping do
# Comment.first # SELECT * FROM comments WHERE post_id = 1
# end