comfy-admin-constructor 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -64,7 +64,7 @@ class CmsAdminGenerator < Rails::Generators::Base
|
|
64
64
|
if haml_present?
|
65
65
|
append = "\n%li= link_to '#{class_name.underscore.humanize.downcase.titleize.pluralize}', #{admin_prefix}_#{class_name.underscore.downcase.pluralize}_path\n"
|
66
66
|
else
|
67
|
-
append = "\n<li><%= link_to '#{class_name.underscore.humanize.downcase.titleize.pluralize}',
|
67
|
+
append = "\n<li><%= link_to '#{class_name.underscore.humanize.downcase.titleize.pluralize}', #{admin_prefix}_#{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
|