Class: Filterameter::Filters::ArelFilter
- Inherits:
-
Object
- Object
- Filterameter::Filters::ArelFilter
- Includes:
- Errors, AttributeValidator
- Defined in:
- lib/filterameter/filters/arel_filter.rb
Overview
# Arel Filter
Class ArelFilter is a base class for arel queries. It does not implement ‘apply`.
Direct Known Subclasses
Instance Attribute Summary
Attributes included from Errors
Instance Method Summary collapse
-
#initialize(model, attribute_name) ⇒ ArelFilter
constructor
A new instance of ArelFilter.
Methods included from Errors
Constructor Details
#initialize(model, attribute_name) ⇒ ArelFilter
Returns a new instance of ArelFilter.
13 14 15 16 |
# File 'lib/filterameter/filters/arel_filter.rb', line 13 def initialize(model, attribute_name) @attribute_name = attribute_name @arel_attribute = model.arel_table[attribute_name] end |