aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 05962f409f..716e7275a5 100644
--- a/activerecord/lib/active_record/relation/query_methods.rb
+++ b/activerecord/lib/active_record/relation/query_methods.rb
@@ -49,7 +49,7 @@ module ActiveRecord
def where(opts, other = nil)
value = build_where(opts, other)
- value ? clone : clone.tap {|r| r.where_values += Array.wrap(value) }
+ value ? clone.tap {|r| r.where_values += Array.wrap(value) } : clone
end
def having(*args)