comfy-admin-constructor 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -54,6 +54,12 @@ class CmsAdminGenerator < Rails::Generators::Base
|
|
54
54
|
}
|
55
55
|
end
|
56
56
|
|
57
|
+
def add_navigation
|
58
|
+
if !File.exist? destination_path("app/views/admin/_navigation.html.haml")
|
59
|
+
template "partials/_navgation.html.haml", "app/views/admin/_navigation.html.haml"
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
57
63
|
private
|
58
64
|
|
59
65
|
def model_path
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comfy-admin-constructor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -38,6 +38,7 @@ files:
|
|
38
38
|
- lib/generators/cms_admin/templates/controller.rb
|
39
39
|
- lib/generators/cms_admin/templates/migration.rb
|
40
40
|
- lib/generators/cms_admin/templates/model.rb
|
41
|
+
- lib/generators/cms_admin/templates/partials/_navigation.html.haml
|
41
42
|
- lib/generators/cms_admin/templates/protected/build.rb
|
42
43
|
- lib/generators/cms_admin/templates/protected/load.rb
|
43
44
|
- lib/generators/cms_admin/templates/views/_form.html.haml
|