pragmarb/pragma

Automatic filtering

aldesantis opened this issue · 0 comments

class Index < Pragma::Operation::Index
  self['filters'] = [
    Pragma::Operation::Filter::Like.new(param: :by_name, column: :name),
    Pragma::Operation::Filter::Ilike.new(param: :by_iname, column: :name),
    Pragma::Operation::Filter::Eq.new(param: :by_country_code, column: :country_code),
  ]
end