Skip to content
Where or function backport from Rails 5 for Rails 4.2
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
certs Release 0.1.6 and replace not valid after 2017-07-11 15:21:56 UTC sign Sep 29, 2017
lib #15 No code is better than code in warning. Sep 29, 2017
.gitignore initial version Sep 16, 2015
.travis.yml initial version Sep 16, 2015
Gemfile initial version Sep 16, 2015
LICENSE.txt Add original author. Sep 16, 2015
README.md #15 No code is better than code in warning. Sep 29, 2017
Rakefile
where-or.gemspec Release 0.1.6 and replace not valid after 2017-07-11 15:21:56 UTC sign Sep 29, 2017
where-or.sublime-project Add original author. Sep 16, 2015

README.md

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

You can’t perform that action at this time.