Add railtie to autoload middleware