Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added #or to ActiveRecord::Relation #16052

Closed
wants to merge 1 commit into from

Commits on Jun 23, 2014

  1. Added #or to ActiveRecord::Relation

        Post.where('id = 1').or(Post.where('id = 2'))
        # => SELECT * FROM posts WHERE (id = 1) OR (id = 2)
    
    [Matthew Draper & Gael Muller]
    matthewd committed Jun 23, 2014
    Copy the full SHA
    71ca4ec View commit details
    Browse the repository at this point in the history