tricknotes / ember-cli-rails

Unify your EmberCLI and Rails Workflows
http://thoughtbot.github.io/ember-cli-rails/
MIT License
713 stars 205 forks source link

Fix autoload deprecation in Rails 6 #587

Closed seanpdoyle closed 4 years ago

seanpdoyle commented 4 years ago

After upgrading an application to Rails 6, I noticed the following deprecation warning:

DEPRECATION WARNING: Initialization autoloaded the constants ApplicationController

This appears to be due to the initializer requiring EmberController, which shouldn't be necessary since that class is already in app/controllers, which is autoloaded. Similarly EmberRailsHelper is autoloaded and shouldn't need to be referenced here.