Project

where-or

0.07
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Where or function backport from Rails 5 for Rails 4.2
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

< 5, >= 4.2.3
 Project Readme

Where Or

Where or function backport from Rails 5 for Rails 4.2

Confirm works from Rails 4.2.3 to 4.2.6, including for preloading, higher version may also works. Please create issue with your experience.

Gem Version

Installation:

gem 'where-or'

Usage

post = Post.where('id = 1').or(Post.where('id = 2'))

Declare of original

Largely copy from bf4 gist