comfy-admin-constructor 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  module Comfy
2
2
  module Admin
3
3
  module Constructor
4
- VERSION = "0.3.3"
4
+ VERSION = "0.3.4"
5
5
  end
6
6
  end
7
7
  end
@@ -47,7 +47,7 @@ class CmsAdminGenerator < Rails::Generators::Base
47
47
  end
48
48
 
49
49
  def create_route
50
- namespaces = [admin_prefix, class_name.underscore.downcase.pluralize]
50
+ namespaces = [admin_prefix.underscore, class_name.underscore.downcase.pluralize]
51
51
  resource = namespaces.pop
52
52
  route namespaces.reverse.inject("resources :#{resource}, :except => [:show]") { |acc, namespace|
53
53
  "namespace(:#{namespace}){ #{acc} }"
@@ -136,7 +136,7 @@ private
136
136
  end
137
137
 
138
138
  def admin_prefix
139
- ComfortableMexicanSofa.config.admin_route_prefix.underscore
139
+ ComfortableMexicanSofa.config.admin_route_prefix
140
140
  end
141
141
 
142
142
  end
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.3.3
4
+ version: 0.3.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: