comfy-admin-constructor 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -62,9 +62,9 @@ class CmsAdminGenerator < Rails::Generators::Base
|
|
62
62
|
|
63
63
|
def append_to_nav_template
|
64
64
|
if haml_present?
|
65
|
-
append = "\n%li= link_to '#{class_name.underscore.humanize.downcase.titleize.pluralize}', #{admin_prefix}_#{class_name.underscore.downcase.pluralize}_path\n"
|
65
|
+
append = "\n%li= link_to '#{class_name.underscore.humanize.downcase.titleize.pluralize}', #{admin_prefix.underscore}_#{class_name.underscore.downcase.pluralize}_path\n"
|
66
66
|
else
|
67
|
-
append = "\n<li><%= link_to '#{class_name.underscore.humanize.downcase.titleize.pluralize}', #{admin_prefix}_#{class_name.underscore.downcase.pluralize}_path %></li>"
|
67
|
+
append = "\n<li><%= link_to '#{class_name.underscore.humanize.downcase.titleize.pluralize}', #{admin_prefix.underscore}_#{class_name.underscore.downcase.pluralize}_path %></li>"
|
68
68
|
end
|
69
69
|
File.open(destination_path("app/views/#{admin_prefix}/_navigation#{template_file_type}"), "a") {|f| f.write(append)}
|
70
70
|
end
|