material_raingular 0.0.2.4.1.alpha → 0.0.2.4.2.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: 67f94836a6a2f4e0e20656141b315284323ee284
4
- data.tar.gz: da2c296a0bd60a11df64967ee19b663f03a1aeaa
3
+ metadata.gz: 51452aeb2f968f78ee1d065681a84ab46b664c05
4
+ data.tar.gz: 9eef038151f9d3d52a1cc29fac87e1e0a32e8916
5
5
  SHA512:
6
- metadata.gz: 22129d7051ed549973b8a2cafe815feb370aedcd3e1d4f1cbd22be8b94cead984c3ff715b0d96038b21b0c9b7e019fe412561dde1760cf9bd50b744b1b48656b
7
- data.tar.gz: 989428c351f44abf460b3f5163340e3b74d46072eebb06b36a3d8e996ce0785bf49663f60ce72f94b269b00f3331aa1d36ee484b62881ff113b3b95829a9c14a
6
+ metadata.gz: a489cc0e49a5131e775dcb0ea828bd2fa335b2defb160ecfa676244bfabd21f43e0a16caf3831387752e14bcee4e2cddbd8bfa4cb84f6b627636fb6a17e2f65f
7
+ data.tar.gz: 33e4987dce1cc7cb9cdc61086dd54d07606d51af1f20d02c6dea86b597f38f68f0173f6c4f62b0a9d7a5745749a7cba057a1e94b395d90fa0e13ba7f725d772f
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.0.2.4.1.alpha"
2
+ VERSION = "0.0.2.4.2.alpha"
3
3
  end
@@ -10,7 +10,8 @@ namespace :material_raingular do
10
10
  controllers[route.defaults[:controller]] ||= {}
11
11
  controllers[route.defaults[:controller]][:parent_model_name_and_format_symbol] ||= []
12
12
  controllers[route.defaults[:controller]][:parent_model_name_and_format_symbol] |= route.parts
13
- controllers[route.defaults[:controller]][route.defaults[:action]] = {url: route.path.spec.to_s.gsub('(.:format)',''), method: route.constraints[:request_method].inspect.delete('/^$')}
13
+ action = (route.parts - [:id, :format]).present? ? "#{(route.parts - [:id, :format])[0][0..-4]}_#{route.defaults[:action]}" : route.defaults[:action]
14
+ controllers[route.defaults[:controller]][action] = {url: route.path.spec.to_s.gsub('(.:format)',''), method: route.constraints[:request_method].inspect.delete('/^$')}
14
15
  end
15
16
  end
16
17
  controllers.each do |controller,routes|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_raingular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.4.1.alpha
4
+ version: 0.0.2.4.2.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-11 00:00:00.000000000 Z
11
+ date: 2015-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler