config/initializers/resolver.rb in kuztuscms-0.0.7 vs config/initializers/resolver.rb in kuztuscms-0.0.8
- old
+ new
@@ -24,9 +24,11 @@
end
# Normalize name and prefix, so the tuple ["index", "users"] becomes
# "users/index" and the tuple ["template", nil] becomes "template".
def normalize_path(name, prefix)
+ puts name.inspect
+ puts prefix.inspect
return name if prefix == "kuztuscms/pages"
return name.gsub(/^#{Kuztuscms.layout_prefix}/, '') if prefix == "layouts"
prefix.present? ? "#{prefix}/#{name}" : name
end