aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/query_methods.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2015-10-25 01:49:37 +0900
committerRyuta Kamizono <kamipo@gmail.com>2015-10-25 01:49:37 +0900
commite7c0595f3bb978e3cbf56d199ed6777949ac9f2b (patch)
tree86abda93c77b65f4ab26126a0c76e97cced520cc /activerecord/lib/active_record/relation/query_methods.rb
parentdf153edcfb9030fb428e1363b969fba846ff14eb (diff)
downloadrails-e7c0595f3bb978e3cbf56d199ed6777949ac9f2b.tar.gz
rails-e7c0595f3bb978e3cbf56d199ed6777949ac9f2b.tar.bz2
rails-e7c0595f3bb978e3cbf56d199ed6777949ac9f2b.zip
Do not omit parentheses [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/relation/query_methods.rb')
-rw-r--r--activerecord/lib/active_record/relation/query_methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb
index 55fd0e0b52..f5afc1000d 100644
--- a/activerecord/lib/active_record/relation/query_methods.rb
+++ b/activerecord/lib/active_record/relation/query_methods.rb
@@ -375,7 +375,7 @@ module ActiveRecord
#
# This means it can be used in association definitions:
#
- # has_many :comments, -> { unscope where: :trashed }
+ # has_many :comments, -> { unscope(where: :trashed) }
#
def unscope(*args)
check_if_method_has_arguments!(:unscope, args)