lib/searchgasm/condition/not_end_with.rb in searchgasm-1.3.0 vs lib/searchgasm/condition/not_end_with.rb in searchgasm-1.3.1

- old
+ new

@@ -8,10 +8,13 @@ end def to_conditions(value) ends_with = EndsWith.new ends_with.value = value - ends_with.to_conditions.gsub(" LIKE ", " NOT LIKE ") + conditions = ends_with.to_conditions + return conditions if conditions.blank? + conditions.first.gsub!(" LIKE ", " NOT LIKE ") + conditions end end end end \ No newline at end of file