Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanety/activerecord_scoping_with_assoc
https://github.com/kanety/activerecord_scoping_with_assoc
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kanety/activerecord_scoping_with_assoc
- Owner: kanety
- License: mit
- Created: 2019-11-09T05:45:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T00:43:05.000Z (3 months ago)
- Last Synced: 2024-10-21T04:07:11.893Z (3 months ago)
- Language: Ruby
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ActiveRecordScopingWithAssoc
Merge scoping to associations in the same way as activerecord5.
## Dependencies
* ruby 2.5+
* activerecord 6.0## Installation
Add this line to your application's Gemfile:
```ruby
gem 'activerecord_scoping_with_assoc'
```Then execute:
$ bundle
## Usage
```ruby
Klass.where(...).scoping_with_assoc do
...
end
```## Contributing
Bug reports and pull requests are welcome at https://github.com/kanety/activerecord_scoping_with_assoc.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).