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