in production there is no cached it seems

This commit is contained in:
Sam 2017-10-03 18:27:09 +11:00
parent ac01885b60
commit 5b96463c40

View File

@ -67,7 +67,7 @@ def upload_asset(helper, path, recurse: true, content_type: nil, fullpath: nil,
end
def assets
cached = Rails.application.assets.cached
cached = Rails.application.assets&.cached
manifest = Sprockets::Manifest.new(cached, Rails.root + 'public/assets', Rails.application.config.assets.manifest)
raise Discourse::SiteSettingMissing.new("s3_upload_bucket") if SiteSetting.s3_upload_bucket.blank?