material_raingular 0.0.2.4.3.alpha → 0.0.2.4.4.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/material_raingular/version.rb +1 -1
- data/lib/tasks/material_raingular.rake +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9cd37ad7e7e7806b1bee43183caaa607ffd3591
|
4
|
+
data.tar.gz: 94a86201e0a508cbde6102371fa1790ddb56cc46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed52b261e69c62855fcbe32b83981f36eef0d9e49bb5c46b16bea4cbfeed382a9a6d23de3e6d8d9749fe4836ff488ebde5c5506b58883ca17ed1760c05df5e26
|
7
|
+
data.tar.gz: 6a913e576f996ff97cc6932fbc2f41e83217ad580a40a38e6a43c45535a04db9e8e0d0a29738cffdccc443ab6432b0e16c8fdd7d92c01472d2433c087ba54b80
|
@@ -15,6 +15,8 @@ namespace :material_raingular do
|
|
15
15
|
method = [:index, :show].include?(action) ? '' : "#{action}_"
|
16
16
|
method += route.defaults[:controller].send(action == :index ? :pluralize : :singularize)
|
17
17
|
controllers[parent[0..-4].pluralize] ||= {}
|
18
|
+
controllers[parent[0..-4].pluralize][:parent_model_name_and_format_symbol] ||= []
|
19
|
+
controllers[parent[0..-4].pluralize][:parent_model_name_and_format_symbol] |= route.parts
|
18
20
|
controllers[parent[0..-4].pluralize][method] = {url: route.path.spec.to_s.gsub('(.:format)',''), method: route.constraints[:request_method].inspect.delete('/^$')}
|
19
21
|
end
|
20
22
|
controllers[route.defaults[:controller]][route.defaults[:action]] = {url: route.path.spec.to_s.gsub('(.:format)',''), method: route.constraints[:request_method].inspect.delete('/^$')}
|