config/initializers/resolver.rb in kuztuscms-0.0.3 vs config/initializers/resolver.rb in kuztuscms-0.0.4

- old
+ new

@@ -25,10 +25,10 @@ # Normalize name and prefix, so the tuple ["index", "users"] becomes # "users/index" and the tuple ["template", nil] becomes "template". def normalize_path(name, prefix) return name if prefix == "kuztuscms/pages" - return name if prefix == "layouts" + return name.gsub(/^#{Kuztuscms.layout_prefix}/, '') if prefix == "layouts" prefix.present? ? "#{prefix}/#{name}" : name end # Normalize arrays by converting all symbols to strings.