Skip to content

Commit 29ff463

Browse files
cseelusglebm
authored andcommitted
Add compat. with Rails >= 6; Fix RDoc depr. warn.
1 parent 74abc58 commit 29ff463

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/to_spreadsheet/rails/action_pack_renderers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
ActionController::Renderers.add ToSpreadsheet.renderer do |template, options|
1818
filename = options[:filename] || options[:template] || 'data'
1919
data = ToSpreadsheet::Context.with_context ToSpreadsheet::Context.global.merge(ToSpreadsheet::Context.new) do |context|
20-
html = render_to_string(template, options.merge(template: template.to_s, formats: ['xlsx', 'html']))
20+
html = render_to_string(template, options.merge(template: template.to_s, formats: [:xlsx, :html]))
2121
ToSpreadsheet::Renderer.to_data(html, context)
2222
end
2323
send_data data, type: ToSpreadsheet.renderer, disposition: %(attachment; filename="#{filename}.xlsx")

to_spreadsheet.gemspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Gem::Specification.new do |s|
2525
s.files = include_files - exclude_files
2626
s.require_path = "lib"
2727
s.test_files = Dir["spec/**/*_spec.rb"]
28-
s.has_rdoc = true
2928
s.extra_rdoc_files = Dir["README*"]
3029
s.add_dependency 'rails'
3130
s.add_dependency 'nokogiri'

0 commit comments

Comments
 (0)