Sha256: 0343103a3e4e62614e30ae0d46f827aa1c7880514ec8ba2c408d4ffe8b438c84
Contents?: true
Size: 985 Bytes
Versions: 2
Compression:
Stored size: 985 Bytes
Contents
[](https://travis-ci.org/westfieldlabs/status_querier) # StatusQuerier `StatusQuerier` gives the ability to safely combine scopes with `or` method given by the `where-or` gem. It restricts the scopes to the allowable 6 types. `pending`, `preview`, `live`, `expired`, `invalid`, and `disabled`. ## Installation Add this line to your application's Gemfile: ```ruby gem 'status_querier' ``` And then execute: $ bundle Or install it yourself as: $ gem install status_querier ## Usage To use, copy the following into your model. ```ruby include StatusQuerier::Querier ``` And now you can call `Model.with_any_statuses(['preview', 'live'])` ## Development After checking out the repo, run `bundle` to install dependencies. Then, run `rake spec` to run the tests. ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/westfield/status_querier.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
status_querier-1.2.4 | README.md |
status_querier-1.2.3 | README.md |