Module: DynamicScope::QueryHelpers
- Included in:
- Query
- Defined in:
- lib/dynamic_scope/query_helpers.rb
Constant Summary collapse
- TRUTHY_VALUES =
['1', 'true', true]
Instance Method Summary collapse
Instance Method Details
#query_param_falsy?(value) ⇒ Boolean
8 9 10 |
# File 'lib/dynamic_scope/query_helpers.rb', line 8 def query_param_falsy?(value) !query_param_truthy?(value) end |
#query_param_truthy?(value) ⇒ Boolean
4 5 6 |
# File 'lib/dynamic_scope/query_helpers.rb', line 4 def query_param_truthy?(value) TRUTHY_VALUES.include?(value) end |