0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-19 15:21:11 +02:00
Dieser Commit ist enthalten in:
Angus McLeod 2022-04-11 14:36:04 +02:00
Ursprung 15c0245edf
Commit 4348a4ee68
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -112,7 +112,7 @@ jobs:
with: with:
path: tmp/app-cache path: tmp/app-cache
key: >- key: >-
${{ hashFiles('.github/workflows/tests.yml') }}- ${{ hashFiles('.github/workflows/plugin-tests.yml') }}-
${{ hashFiles('db/**/*', 'plugins/**/db/**/*') }}- ${{ hashFiles('db/**/*', 'plugins/**/db/**/*') }}-
- name: Restore database from cache - name: Restore database from cache

Datei anzeigen

@ -22,6 +22,8 @@ if Rails.env.production?
} }
end end
puts "BEFORE ADD ASSET PATHS"
if Rails.env.test? if Rails.env.test?
config = Rails.application.config config = Rails.application.config
plugin_asset_path = "#{Rails.root}/plugins/discourse-custom-wizard/assets" plugin_asset_path = "#{Rails.root}/plugins/discourse-custom-wizard/assets"
@ -252,6 +254,7 @@ after_initialize do
::InvitesController.prepend InvitesControllerCustomWizard ::InvitesController.prepend InvitesControllerCustomWizard
::UsersController.prepend CustomWizardUsersController ::UsersController.prepend CustomWizardUsersController
::Guardian.prepend CustomWizardGuardian ::Guardian.prepend CustomWizardGuardian
puts "PREPENDING CSP EXTENSION"
::ContentSecurityPolicy::Extension.singleton_class.prepend CustomWizardContentSecurityPolicyExtension ::ContentSecurityPolicy::Extension.singleton_class.prepend CustomWizardContentSecurityPolicyExtension
full_path = "#{Rails.root}/plugins/discourse-custom-wizard/assets/stylesheets/wizard/wizard_custom.scss" full_path = "#{Rails.root}/plugins/discourse-custom-wizard/assets/stylesheets/wizard/wizard_custom.scss"