Skip to content

Commit

Permalink
Merge pull request #34 from cduez/fix_format_overwrite
Browse files Browse the repository at this point in the history
Fix broken rails html email detection.
  • Loading branch information
anitsirc committed Nov 23, 2015
2 parents 149ad58 + b1d378f commit 3c55430
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 3c55430

Please sign in to comment.