lib/erratum/simplify.rb in errata-0.2.1 vs lib/erratum/simplify.rb in errata-0.2.2
- old
+ new
@@ -11,10 +11,10 @@
def inspect
super + " second_column=#{second_column}>"
end
def targets?(row)
- !row[column].blank? and !row[second_column].blank? and method_matches?(row) and matching_expression(row).match(row[column])
+ !row[column].blank? and !row[second_column].blank? and conditions_match?(row) and matching_expression(row).match(row[column])
end
def correct!(row)
super(row) do
row[column].gsub!(matching_expression(row), '')