aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorप्रथमेश Sonpatki <csonpatki@gmail.com>2016-07-15 16:32:39 +0530
committerGitHub <noreply@github.com>2016-07-15 16:32:39 +0530
commitea007832ecd512df1f39dc918b15064061b154f1 (patch)
treed287bc21e1df73528bc90ac50c171d37e6f00580
parent62514c5db76f77afc617cd02981a68abbcf58e87 (diff)
parent68d35960f336d5be3c5e35c88e6c8bdebcbcf500 (diff)
downloadrails-ea007832ecd512df1f39dc918b15064061b154f1.tar.gz
rails-ea007832ecd512df1f39dc918b15064061b154f1.tar.bz2
rails-ea007832ecd512df1f39dc918b15064061b154f1.zip
Merge pull request #25844 from tyamagu2/empty_typo
[ci skip] fix a typo
-rw-r--r--activerecord/lib/active_record/associations/collection_proxy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb
index 5d1e7ffb73..17ccf5a86c 100644
--- a/activerecord/lib/active_record/associations/collection_proxy.rb
+++ b/activerecord/lib/active_record/associations/collection_proxy.rb
@@ -793,7 +793,7 @@ module ActiveRecord
# Returns +true+ if the collection is empty. If the collection has been
# loaded it is equivalent
# to <tt>collection.size.zero?</tt>. If the collection has not been loaded,
- # it is equivalent to <tt>collection.exists?</tt>. If the collection has
+ # it is equivalent to <tt>!collection.exists?</tt>. If the collection has
# not already been loaded and you are going to fetch the records anyway it
# is better to check <tt>collection.length.zero?</tt>.
#