Module: ScopieRails::Controller
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/scopie_rails/controller.rb
Instance Method Summary collapse
Instance Method Details
#apply_scopes(target, scopie: nil, hash: params) ⇒ Object
5 6 7 8 |
# File 'lib/scopie_rails/controller.rb', line 5 def apply_scopes(target, scopie: nil, hash: params) scopie ||= find_scopie_class.new(self) Scopie.apply_scopes(target, hash, method: hash[:action], scopie: scopie) end |