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.
@@ -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
|
139
|
+
ComfortableMexicanSofa.config.admin_route_prefix
|
140
140
|
end
|
141
141
|
|
142
142
|
end
|