diff --git a/lib/htmltoword/action_controller.rb b/lib/htmltoword/action_controller.rb index be72f63..ef3e8c9 100644 --- a/lib/htmltoword/action_controller.rb +++ b/lib/htmltoword/action_controller.rb @@ -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