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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c00fe908fd5599cbb94d5a615cecf762997f11b
4
- data.tar.gz: bbf7f5b6db821da870c9566f1a77647e606e0951
3
+ metadata.gz: e9cd37ad7e7e7806b1bee43183caaa607ffd3591
4
+ data.tar.gz: 94a86201e0a508cbde6102371fa1790ddb56cc46
5
5
  SHA512:
6
- metadata.gz: 4cc3c44681058d634557db4ca8a2f390fddd76494fbf9dac8df657e924853f4812917e878254b0a7cc3748ec284ae70a26e9d8b86d65589e854d7c643305f59a
7
- data.tar.gz: 3aaa3778b43d634ebdf88569fa47eb1606a5ade7536b17162d227bd5eb4b6b80a2292f9a5a35f7737eb7fadf85feba318961862f22900864bcc71a5157077d15
6
+ metadata.gz: ed52b261e69c62855fcbe32b83981f36eef0d9e49bb5c46b16bea4cbfeed382a9a6d23de3e6d8d9749fe4836ff488ebde5c5506b58883ca17ed1760c05df5e26
7
+ data.tar.gz: 6a913e576f996ff97cc6932fbc2f41e83217ad580a40a38e6a43c45535a04db9e8e0d0a29738cffdccc443ab6432b0e16c8fdd7d92c01472d2433c087ba54b80
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.0.2.4.3.alpha"
2
+ VERSION = "0.0.2.4.4.alpha"
3
3
  end
@@ -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('/^$')}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_raingular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.4.3.alpha
4
+ version: 0.0.2.4.4.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody