Revision 0c5cb331
Added by Marc Dequènes almost 15 years ago
- ID 0c5cb33154b9e83e6c60845723f3fe49c7db40eb
config/environment.rb | ||
---|---|---|
require 'fixes'
|
||
require 'rails_addons'
|
||
|
||
Mime::Type.register "image/svg+xml", :svg
|
||
|
config/initializers/mime_types.rb | ||
---|---|---|
# Add new mime types for use in respond_to blocks:
|
||
# Mime::Type.register "text/richtext", :rtf
|
||
# Mime::Type.register_alias "text/html", :iphone
|
||
Mime::Type.register "image/svg+xml", :svg
|
||
|
Also available in: Unified diff
[fix] use Rails initializers properly, to ensure inflections and mime types are loaded at the right moment