lib/searchgasm/condition/not_end_with.rb in searchgasm-1.3.5 vs lib/searchgasm/condition/not_end_with.rb in searchgasm-1.4.0
- old
+ new
@@ -6,10 +6,10 @@
super + ["not_ew", "not_end", "end_is_not", "end_not"]
end
end
def to_conditions(value)
- ends_with = EndsWith.new
+ ends_with = EndsWith.new(klass, options)
ends_with.value = value
conditions = ends_with.to_conditions
return conditions if conditions.blank?
conditions.first.gsub!(" LIKE ", " NOT LIKE ")
conditions
\ No newline at end of file