assaf / vanity

Experiment Driven Development for Ruby
http://vanity.labnotes.org
MIT License
1.55k stars 269 forks source link

Rails 5 Deprecation Warning #312

Closed terracatta closed 7 years ago

terracatta commented 7 years ago

On a brand new Rails 5.0.1 app I get the following when visiting the vanity dashboard.

DEPRECATION WARNING: Accessing mime types via constants is deprecated. Please change `Mime::HTML` to `Mime[:html]`. (called from const_missing at /Users/<snip>/.rvm/gems/ruby-2.3.1/gems/actionpack-5.0.0.1/lib/action_dispatch/http/mime_type.rb:52)

Offending lines are located at:

https://github.com/assaf/vanity/blob/9fed166e53400cf9a1869ab63baec440f2f0a244/lib/vanity/frameworks/rails.rb#L351-L359