lib/searchgasm/condition/not_begin_with.rb in searchgasm-1.3.5 vs lib/searchgasm/condition/not_begin_with.rb in searchgasm-1.4.0

- old
+ new

@@ -6,10 +6,10 @@ super + ["not_bw", "not_sw", "not_start_with", "not_start", "beginning_is_not", "beginning_not"] end end def to_conditions(value) - begin_with = BeginWith.new + begin_with = BeginWith.new(klass, options) begin_with.value = value conditions = being_with.to_conditions return conditions if conditions.blank? conditions.first.gsub!(" LIKE ", " NOT LIKE ") conditions \ No newline at end of file