From 13dd38cee79be39f7b399e142fd78295dddd2abb Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 5 Dec 2013 15:48:32 -0800 Subject: Add Mime::Type.register "text/vcard", :vcf to the default list of mime types --- actionpack/CHANGELOG.md | 4 ++++ actionpack/lib/action_dispatch/http/mime_types.rb | 1 + 2 files changed, 5 insertions(+) (limited to 'actionpack') diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 38d20afc83..5f0f1b78d1 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,3 +1,7 @@ +* Add Mime::Type.register "text/vcard", :vcf to the default list of mime types + + *DHH* + * Remove deprecated `ActionController::RecordIdentifier`, use `ActionView::RecordIdentifier` instead. diff --git a/actionpack/lib/action_dispatch/http/mime_types.rb b/actionpack/lib/action_dispatch/http/mime_types.rb index a6b3aee5e7..0e4da36038 100644 --- a/actionpack/lib/action_dispatch/http/mime_types.rb +++ b/actionpack/lib/action_dispatch/http/mime_types.rb @@ -7,6 +7,7 @@ Mime::Type.register "text/javascript", :js, %w( application/javascript applicati Mime::Type.register "text/css", :css Mime::Type.register "text/calendar", :ics Mime::Type.register "text/csv", :csv +Mime::Type.register "text/vcard", :vcf Mime::Type.register "image/png", :png, [], %w(png) Mime::Type.register "image/jpeg", :jpeg, [], %w(jpg jpeg jpe pjpeg) -- cgit v1.2.3