Skip to content

Commit

Permalink
Append docx to formats instead of overwriting the first entry.
Browse files Browse the repository at this point in the history
Signed-off-by: Cyril Duez <[email protected]>
Signed-off-by: François de Metz <[email protected]>
  • Loading branch information
cduez committed Oct 14, 2015
1 parent 9d73bed commit b1d378f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/htmltoword/action_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
end

ActionController::Renderers.add :docx do |filename, options|
formats[0] = :docx unless formats.include?(:docx) || Rails.version < '3.2'
formats << :docx unless formats.include?(:docx) || Rails.version < '3.2'

# This is ugly and should be solved with regular file utils
if options[:template] == action_name
Expand Down

0 comments on commit b1d378f

Please sign in to comment.