mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
91b6253ade
- Original issue was reported in https://github.com/rails/rails/issues/38094
and a fix attempted in https://github.com/rails/rails/pull/38126 but
it's not the proper fix I think.
TL;DR Is that `ActionView::Base.default_formats` holds a copy of
mime symbols at the time ActionView::Base is loaded.
So if you try to register mime types after ActionView Base is loaded
then it won't work.
```ruby
ActionView::Base.default_formats ||= Mime::SET.symbols # Note that this is automatically done when ActionView get loaded
|
||
---|---|---|
.. | ||
accept_format_test.rb | ||
respond_to_test.rb |