class Toller::Filters::ScopeHandler

Scope handler for filter

Public Instance Methods

call(collection, value, properties) click to toggle source
# File lib/toller/filters/scope_handler.rb, line 9
def call(collection, value, properties)
  scoped_name = properties[:scope_name] || properties[:field]

  collection.public_send(scoped_name, value)
end