Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kanety/activerecord_scoping_with_assoc


https://github.com/kanety/activerecord_scoping_with_assoc

Last synced: 2 months ago
JSON representation

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).