lib/optimiser/dependency_builder.rb in rubyfromexcel-0.0.18 vs lib/optimiser/dependency_builder.rb in rubyfromexcel-0.0.19

- old
+ new

@@ -67,11 +67,11 @@ args.each { |a| a.visit(self) } end end def reference_for_name(name) - worksheet.named_references[name.to_method_name] || - workbook.named_references[name.to_method_name] || + worksheet.named_references[name.downcase] || + workbook.named_references[name.downcase] || (raise Exception.new("#{name} in #{formula_cell} not found")) end def workbook formula_cell.worksheet.workbook \ No newline at end of file