Skip to content

Commit

Permalink
change xlsx format to xls in xrb
Browse files Browse the repository at this point in the history
  • Loading branch information
superp committed Feb 13, 2012
1 parent 2678dcf commit 206beab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby2xlsx/xrb.rb
Expand Up @@ -6,7 +6,7 @@ class Xrb

def call(template)
%{ controller.send_data ::Ruby2xlsx::Template.new(#{template.source.inspect}).render(self, assigns.merge(local_assigns)),
:filename => [controller.action_name, ".xlsx"].join,
:filename => [controller.action_name, ".xls"].join,
:type => "application/vnd.ms-excel",
:disposition => "attachment" }
end
Expand Down

0 comments on commit 206beab

Please sign in to comment.