Browse Source

Fixed assets

development
Godwin 7 years ago
parent
commit
b2cb1df962
  1. 2
      app/controllers/application_controller.rb

2
app/controllers/application_controller.rb

@ -68,7 +68,7 @@ class ApplicationController < BaseController
@stylesheets << params[:controller] if params[:controller] == 'translations' @stylesheets << params[:controller] if params[:controller] == 'translations'
@_inline_scripts ||= Set.new @_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 = { ActionMailer::Base.default_url_options = {
host: "#{request.protocol}#{request.host_with_port}" host: "#{request.protocol}#{request.host_with_port}"

Loading…
Cancel
Save