comfy-admin-constructor 0.4.3 → 0.4.4

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.
data/.DS_Store ADDED
Binary file
data/README.md CHANGED
@@ -24,7 +24,8 @@ There are plans to make CAC more flexible in the future, but right now it assume
24
24
  Upcoming Features
25
25
  ----------------
26
26
 
27
- * Basic passing tests
27
+ * Basic, passing tests will be generated for you
28
+ * The ability to force rake db:migrate, instead of having to run it manually
28
29
 
29
30
  Quick Start Guide
30
31
  -----------------
@@ -1,7 +1,7 @@
1
1
  module Comfy
2
2
  module Admin
3
3
  module Constructor
4
- VERSION = "0.4.3"
4
+ VERSION = "0.4.4"
5
5
  end
6
6
  end
7
7
  end
@@ -47,10 +47,10 @@ class CmsAdminGenerator < Rails::Generators::Base
47
47
  end
48
48
 
49
49
  def create_route
50
- namespaces = [admin_prefix.underscore, class_name.underscore.downcase.pluralize]
50
+ namespaces = [admin_prefix, class_name.underscore.downcase.pluralize]
51
51
  resource = namespaces.pop
52
52
  route namespaces.reverse.inject("resources :#{resource}, :except => [:show]") { |acc, namespace|
53
- "namespace(:#{namespace}){ #{acc} }"
53
+ "namespace(:#{namespace.underscore}, :path => '#{namespace}'){ #{acc} }"
54
54
  }
55
55
  end
56
56
 
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.4.3
4
+ version: 0.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -19,6 +19,7 @@ executables: []
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
+ - .DS_Store
22
23
  - .gitignore
23
24
  - Gemfile
24
25
  - LICENSE