mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
commit
0b0042cfcd
1 changed files with 2 additions and 2 deletions
|
@ -183,11 +183,11 @@
|
|||
* Accessing mime types via constants like `Mime::HTML` is deprecated. Please
|
||||
change code like this:
|
||||
|
||||
Mime::HTML
|
||||
Mime::HTML
|
||||
|
||||
To this:
|
||||
|
||||
Mime[:html]
|
||||
Mime[:html]
|
||||
|
||||
This change is so that Rails will not manage a list of constants, and fixes
|
||||
an issue where if a type isn't registered you could possibly get the wrong
|
||||
|
|
Loading…
Reference in a new issue