comfy-admin-constructor 0.3.3 → 0.3.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.
|
@@ -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
|