diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-06-11 20:28:50 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-06-11 20:28:50 +0900 |
commit | 97c01bc776b83a05beed818dbcb77fbee6920568 (patch) | |
tree | 7301d82bf016fbdd1c08122a987bd7f1e84b4f0c /activerecord/lib | |
parent | 1528c8c2aea0dec2199a4eec8f54ab2c2d58e57c (diff) | |
download | rails-97c01bc776b83a05beed818dbcb77fbee6920568.tar.gz rails-97c01bc776b83a05beed818dbcb77fbee6920568.tar.bz2 rails-97c01bc776b83a05beed818dbcb77fbee6920568.zip |
Fix `or` result SQL [ci skip]
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
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 2a831c2017..8a87015e44 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -658,7 +658,7 @@ module ActiveRecord # present). Neither relation may have a #limit, #offset, or #distinct set. # # Post.where("id = 1").or(Post.where("author_id = 3")) - # # SELECT `posts`.* FROM `posts` WHERE (('id = 1' OR 'author_id = 3')) + # # SELECT `posts`.* FROM `posts` WHERE ((id = 1) OR (author_id = 3)) # def or(other) unless other.is_a? Relation |