Sha256: 736907ca28bc1e9ff659d038bc0f71e04d13dcd863ab16bb7d99b6fd247d83bb
Contents?: true
Size: 410 Bytes
Versions: 2
Compression:
Stored size: 410 Bytes
Contents
module Searchgasm module Condition class InclusiveDescendantOf < Tree def to_conditions(value) condition = DescendantOf.new(klass, options) condition.value = value merge_conditions(["#{quoted_table_name}.#{quote_column_name(klass.primary_key)} = ?", (value.is_a?(klass) ? value.send(klass.primary_key) : value)], condition.sanitize, :any => true) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
searchgasm-1.4.0 | lib/searchgasm/condition/inclusive_descendant_of.rb |
searchgasm-1.4.1 | lib/searchgasm/condition/inclusive_descendant_of.rb |