Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-15 22:32:54 +01:00
10 Zeilen
Kein EOL
334 B
Ruby
10 Zeilen
Kein EOL
334 B
Ruby
module ExtraLocalesControllerCustomWizard
|
|
private def valid_bundle?(bundle)
|
|
super || begin
|
|
return false unless bundle =~ /wizard/ && request.referer =~ /\/w\//
|
|
path = URI(request.referer).path
|
|
wizard_id = path.split('/w/').last
|
|
CustomWizard::Template.exists?(wizard_id.underscore)
|
|
end
|
|
end
|
|
end |