comfy-admin-constructor 0.1.14 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
@@ -61,7 +61,7 @@ class CmsAdminGenerator < Rails::Generators::Base
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def append_to_nav_template
|
64
|
-
File.open(destination_path("app/views/admin/_navigation.html.haml"), "a") {|f| f.write("\n%li= link_to '
|
64
|
+
File.open(destination_path("app/views/admin/_navigation.html.haml"), "a") {|f| f.write("\n%li= link_to '#{class_name.underscore.humanize.downcase.titleize.pluralize}', admin_#{class_name.underscore.downcase.pluralize}_path\n")}
|
65
65
|
end
|
66
66
|
|
67
67
|
private
|