material 0.2.18 → 0.2.19

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
  SHA256:
3
- metadata.gz: d246ee58fe13cce3ed36bf2e664dcfb04f4cb1ddc334506f0ac7053378839d14
4
- data.tar.gz: 15616cab061ef76e3e1e54260139037490bfd1f128acd01eccaff500b3bd210d
3
+ metadata.gz: cc011f11790c4395ee4dedf125b9ae64493a83381e67ce160b71fe13e3b0004d
4
+ data.tar.gz: 941a9be1d46eabc029020f8a6aa9ea98ed90bde382e4832e2045c0d37e29ab9e
5
5
  SHA512:
6
- metadata.gz: a4d1e9e240a51b215f4ce4582d46169526e746de792ba4f2290e09283eece8b5b55490d91d30202bedee4293089e1ae3d65131937e3fe6314973f7d91ccc461a
7
- data.tar.gz: a31b323bd944ad2ce1e7c2ec2b3da42f8a9362b94d889a3c17829c7207a608a6336b5b95314d671d7bb7ab5982f2be8cd35d477dcb5cb9bcb51e2cf740a28c15
6
+ metadata.gz: 57ff00f49fde41c883e4138477ee88ee829afcdc6d9998b7aa84d201e134e278262070852b141825e5bbfaf9e78a7b8580513cc96dcdb0bb486189b4c8db6df5
7
+ data.tar.gz: 474fb3c570303d8a58b855ceabc29ef03ca7dfc068c7f62195ea0f708cde224083aebb07251a93566521c7a4a66135121cb7346cd300970c4349557ededa1600
@@ -14,8 +14,9 @@ module Material
14
14
 
15
15
  class_methods do
16
16
  def register_path_component(key, route_key_method)
17
+ register_component(route_key_method) { try(:model_name)&.public_send(route_key_method) }
17
18
  register_component(key) do
18
- route_key = try(:model_name)&.public_send(route_key_method)
19
+ route_key = public_send(route_key_method)
19
20
  "#{route_key}_path".to_sym if route_key.present?
20
21
  end
21
22
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Material
4
- VERSION = "0.2.18"
4
+ VERSION = "0.2.19"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.18
4
+ version: 0.2.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Garside
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-12 00:00:00.000000000 Z
11
+ date: 2019-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport