Class: JsonApiFilter::FieldFilters::Searcher

Inherits:
Base
  • Object
show all
Defined in:
lib/json_api_filter/field_filters/searcher.rb

Instance Attribute Summary

Attributes inherited from Base

#association, #scope, #values

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from JsonApiFilter::FieldFilters::Base

Instance Method Details

#predicateActiveRecord_Relation

Returns:

  • (ActiveRecord_Relation)


6
7
8
# File 'lib/json_api_filter/field_filters/searcher.rb', line 6

def predicate
  scope.send(values.keys.first, values.values.first)
end