lib/errata/erratum/simplify.rb in errata-1.0.1 vs lib/errata/erratum/simplify.rb in errata-1.0.2
- old
+ new
@@ -8,10 +8,10 @@
def targets?(row)
!row[section].blank? and !row[second_section].blank? and conditions_match?(row) and special_matcher(row).match(row[section])
end
def correct!(row)
- super(row) do
+ if targets? row
row[section].gsub! special_matcher(row), ''
end
end
def special_matcher(row)