A long-lived project that still receives updates
Merge scoping to associations
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 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:

gem 'activerecord_scoping_with_assoc'

Then execute:

$ bundle

Usage

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.