Module: Filterable::Concerns::Togglable

Extended by:
ActiveSupport::Concern
Defined in:
lib/filterable/concerns/togglable.rb

Overview

Adds scope toggling to a Filterable::Concern model. Declare the no-argument scopes with togglable :priced (or +togglable public_name: :scope_name+ to alias), then a strict true under filters[<name>] applies those scopes only — checkbox semantics.