lib/br_documents/ie/ap.rb in br_documents-0.0.10 vs lib/br_documents/ie/ap.rb in br_documents-0.0.11
- old
+ new
@@ -17,10 +17,9 @@
end
def valid_digital_check?
weight = [9, 8, 7, 6, 5, 4, 3, 2]
detect_range_digits
- @number.gsub!(/\./, "")
@number[-1].eql? generate_digital_check(@number, weight).to_s
end
def detect_range_digits
number = @number[0, 8]