A platform for community discussion. Free, open, simple.
DEV: Change path for extra scss files in themes (#7664)
David Taylor75fc12622430
diff --git a/app/models/theme_field.rb b/app/models/theme_field.rbindex cceb9493de2..f94620404fd 100644--- a/app/models/theme_field.rb+++ b/app/models/theme_field.rb@@ -379,9 +379,9 @@ class ThemeField < ActiveRecord::BaseThemeFileMatcher.new(regex: /^common\/embedded\.scss$/,targets: :common, names: "embedded_scss", types: :scss,canonical: -> (h) { "common/embedded.scss" }),- ThemeFileMatcher.new(regex: /^scss\/(?<name>.+)\.scss$/,+ ThemeFileMatcher.new(regex: /^(?:scss|stylesheets)\/(?<name>.+)\.scss$/,targets: :extra_scss, names: nil, types: :scss,- canonical: -> (h) { "scss/#{h[:name]}.scss" }),+ canonical: -> (h) { "stylesheets/#{h[:name]}.scss" }),ThemeFileMatcher.new(regex: /^settings\.ya?ml$/,names: "yaml", types: :yaml, targets: :settings,canonical: -> (h) { "settings.yml" }),