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
- Host: GitHub
- URL: https://github.com/invisiblehats/act_as_scope
- Owner: invisiblehats
- License: mit
- Created: 2019-05-08T21:34:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T12:51:45.000Z (over 3 years ago)
- Last Synced: 2025-12-06T22:24:09.915Z (6 months ago)
- Topics: rails, rails-engine, scopes
- Language: Ruby
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# act_as_scope
---
[](https://badge.fury.io/rb/act_as_scope)
[](https://travis-ci.com/invisiblehats/act_as_scope)
[](https://codeclimate.com/github/invisiblehats/act_as_scope)
[](http://inch-ci.org/github/invisiblehats/act_as_scope)
[](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