lib/roo/roo_rails_helper.rb in roo-1.11.2 vs lib/roo/roo_rails_helper.rb in roo-1.12.0
- old
+ new
@@ -1,5 +1,6 @@
+warn "Roo's roo_rails_helper, aka the spreadsheet view method is currently deprecated with no replacement. If you find it helpful, tell http://github.com/Empact or extract it yourself."
def spreadsheet(spreadsheet, sheets, options={})
@rspreadsheet = spreadsheet
coordinates = true # default
o=""
if options[:coordinates] != nil
@@ -41,10 +42,10 @@
@rspreadsheet.first_column(sheet).upto(@rspreadsheet.last_column(sheet)) {|c|
if c < first_column or c > last_column
next
end
o << " <td>"
- o << " <b>#{Roo::GenericSpreadsheet.number_to_letter(c)}</b>"
+ o << " <b>#{Roo::Base.number_to_letter(c)}</b>"
o << " </td>"
}
o << "</tr>"
end
@rspreadsheet.first_row.upto(@rspreadsheet.last_row) do |y|