Class: HQ::GraphQL::Filters::BooleanFilter
- Defined in:
- lib/hq/graphql/filters.rb
Constant Summary
Constants included from HQ::GraphQL::FilterOperations
HQ::GraphQL::FilterOperations::OPERATIONS
Instance Attribute Summary
Attributes inherited from Filter
#column, #operation, #table, #value
Instance Method Summary collapse
Methods inherited from Filter
class_from_column, #display_error_message, for, #initialize, #validate_boolean_values, validate_operations, validate_value
Constructor Details
This class inherits a constructor from HQ::GraphQL::Filters::Filter
Instance Method Details
#to_arel ⇒ Object
105 106 107 108 109 110 111 112 113 |
# File 'lib/hq/graphql/filters.rb', line 105 def to_arel arel = super if value.casecmp("f") == 0 || value.casecmp("false") == 0 arel = arel.or(table[column.name].eq(false)) end arel end |