Skip to content

A platform for community discussion. Free, open, simple.

DEV: Ensure the correct plugin stylesheets are reloaded in development

David Taylor76c02cac65e8
diff --git a/lib/stylesheet/watcher.rb b/lib/stylesheet/watcher.rb
index 908e5b3617b..089c0643e38 100644
--- a/lib/stylesheet/watcher.rb
+++ b/lib/stylesheet/watcher.rb
@@ -61,7 +61,7 @@ module Stylesheet
paths.map! do |long|
plugin_name = nil
plugins_paths.each do |plugin_path|
- if long.include?(plugin_path)
+ if long.include?("#{plugin_path}/")
plugin_name = File.basename(plugin_path)
break
end