Module: Filterable::Scopable

Defined in:
lib/filterable/scopable.rb

Overview

Hands filters[<name>] to a named model scope. Only names the model declared scopable are honored; the scope name is fixed at declaration time, never derived from the params. A blank or non-scalar value, a missing scope, or a scope not returning a relation narrows nothing.