From b2cb1df9625d38afe495e8d5a6ab7d9040d09cdc Mon Sep 17 00:00:00 2001 From: Godwin Date: Sat, 22 Jul 2017 21:44:37 -0700 Subject: [PATCH] Fixed assets --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 5dbd0cb..2f29dec 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -68,7 +68,7 @@ class ApplicationController < BaseController @stylesheets << params[:controller] if params[:controller] == 'translations' @_inline_scripts ||= Set.new - @_inline_scripts << Rails.application.assets.find_asset('main.js').to_s + @_inline_scripts << File.read(File.join(Rails.public_path, ActionController::Base.helpers.asset_path('main.js'))) ActionMailer::Base.default_url_options = { host: "#{request.protocol}#{request.host_with_port}"