An open API service indexing awesome lists of open source software.

https://github.com/invisiblehats/act_as_scope

A rails gem for adding helpful scopes to models
https://github.com/invisiblehats/act_as_scope

rails rails-engine scopes

Last synced: 16 days ago
JSON representation

A rails gem for adding helpful scopes to models

Awesome Lists containing this project

README

          

# act_as_scope

---

[![Gem Version](https://badge.fury.io/rb/act_as_scope.svg)](https://badge.fury.io/rb/act_as_scope)
[![Build Status](https://travis-ci.com/invisiblehats/act_as_scope.svg?branch=master)](https://travis-ci.com/invisiblehats/act_as_scope)
[![Code Climate](https://codeclimate.com/github/invisiblehats/act_as_scope.svg)](https://codeclimate.com/github/invisiblehats/act_as_scope)
[![Inline docs](http://inch-ci.org/github/invisiblehats/act_as_scope.svg)](http://inch-ci.org/github/invisiblehats/act_as_scope)
[![Security](https://hakiri.io/github/invisiblehats/act_as_scope/master.svg)](https://hakiri.io/github/invisiblehats/act_as_scope/master)

---

Helpful queries to include in your rails application

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'act_as_scope', github: 'invisiblehats/act_as_scope'
```

And then execute:

$ bundle

Or install it yourself as:

$ gem install act_as_scope

## Usage

- Setup in model
- Use `Model.s_active`

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/invisiblehats/act_as_scope. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

## Code of Conduct

Everyone interacting in the ClassName project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/act_as_scope/blob/master/CODE_OF_CONDUCT.md).

## Development team
### People
- [Myk Klemme - @mklemme](https://github.com/mklemme) Lead developer and maintainer for this project.
### Partners
- [Invisible Hat Ventures - @invisiblehats](https://github.com/invisiblehats) A private startup development agency
- [Love.irish - @love-irish](https://github.com/love-irish) A lifestyle-as-a-service for the Irish language
- [League of Celts - @league-of-celts](https://github.com/league-of-celts) A non-profit focused on promoting Celtic languages