mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 19:38:24 +00:00
FIX: Allow us to call script_asset_url
in controllers
Without this patch fingerprinting was not applied in production.
This commit is contained in:
parent
0f9a58e06f
commit
da918ac43e
@ -2,7 +2,6 @@
|
||||
|
||||
class BootstrapController < ApplicationController
|
||||
include ApplicationHelper
|
||||
include ActionView::Helpers::AssetUrlHelper
|
||||
|
||||
# This endpoint allows us to produce the data required to start up Discourse via JSON API,
|
||||
# so that you don't have to scrape the HTML for `data-*` payloads
|
||||
|
@ -55,7 +55,7 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def script_asset_path(script)
|
||||
path = asset_path("#{script}.js")
|
||||
path = ActionController::Base.helpers.asset_path("#{script}.js")
|
||||
|
||||
if GlobalSetting.use_s3? && GlobalSetting.s3_cdn_url
|
||||
if GlobalSetting.cdn_url
|
||||
|
Loading…
x
Reference in New Issue
Block a user