https://github.com/kanety/activerecord_scoping_with_assoc
https://github.com/kanety/activerecord_scoping_with_assoc
Last synced: 3 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2026-01-12T07:58:21.000Z (5 months ago)
- Last Synced: 2026-02-20T02:04:20.384Z (3 months ago)
- Language: Ruby
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- 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 3.0+
* activerecord 7.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).