Module: Filterable::Concerns::Matchable

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

Overview

Adds partial matching to a Filterable::Concern model. Declare the columns with matchable :reference (or matchable public_name: :db_column to alias), then the starts_with/ends_with/contains keys under filters[<attribute>] operate on those columns only. +case_sensitive: true+ in a declaration makes its attributes match case sensitively — case_sensitive is a reserved word, never a public name.