mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user