Permalink
Browse files

got the ternary backwards. somehow the sqlite tests passed!

  • Loading branch information...
1 parent f171bc6 commit a7a6a2ff46b173b420bd493d727772531d72658f @tenderlove tenderlove committed Jul 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/query_methods.rb
@@ -49,7 +49,7 @@ def joins(*args)
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)

0 comments on commit a7a6a2f

Please sign in to comment.