class Brita::WhereHandler

Public Class Methods

new(param) click to toggle source
# File lib/brita/where_handler.rb, line 3
def initialize(param)
  @param = param
end

Public Instance Methods

call(collection, value, _params, _scope_params) click to toggle source
# File lib/brita/where_handler.rb, line 7
def call(collection, value, _params, _scope_params)
  collection.where(@param.internal_name => value)
end