comfy-admin-constructor 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -50,7 +50,7 @@ class CmsAdminGenerator < Rails::Generators::Base
|
|
50
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.underscore}, :path => '#{namespace}'){
|
53
|
+
"namespace(:#{namespace.underscore}, :path => '#{namespace}'){#{acc}}"
|
54
54
|
}
|
55
55
|
end
|
56
56
|
|