Skip to content

Instantly share code, notes, and snippets.

View ghaydarov's full-sized avatar
🎯
Focusing

Gurban Haydarov ghaydarov

🎯
Focusing
View GitHub Profile
@ghaydarov
ghaydarov / whereable.rb
Created September 22, 2022 03:48 — forked from searls/whereable.rb
The initial implementation of a Whereable query filter for KameSame.
class Whereable
def initialize(where:, model: Item, ranking_conditions: [], valid: true, data_source: nil)
@model = model
@where = where
@data_source = data_source
@ranking_conditions = ranking_conditions
@valid = valid
end
def valid?