Sha256: 3111aa2bd7a5989103fc180c2650b3985ce32411b38af57db50facba3de8a4c0
Contents?: true
Size: 417 Bytes
Versions: 6
Compression:
Stored size: 417 Bytes
Contents
module Searchlogic 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
6 entries across 6 versions & 1 rubygems