comfy-admin-constructor 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  module Comfy
2
2
  module Admin
3
3
  module Constructor
4
- VERSION = "0.1.10"
4
+ VERSION = "0.1.11"
5
5
  end
6
6
  end
7
7
  end
@@ -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
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.10
4
+ version: 0.1.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: