lib/searchlogic/condition/inclusive_descendant_of.rb in searchlogic-1.5.9 vs lib/searchlogic/condition/inclusive_descendant_of.rb in searchlogic-1.5.10
- old
+ new
@@ -1,7 +1,7 @@
module Searchlogic
module Condition
- class InclusiveDescendantOf < Tree
+ 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
\ No newline at end of file