Module: Filterable::Concerns::Attachable

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

Overview

Adds ActiveStorage attachment filtering to a Filterable::Concern model. Declare the attachments with attachable :document (or +attachable public_name: :attachment_name+ to alias), then the present/type/min_size/ max_size keys under filters[<name>] operate on those attachments only.