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 +4 -4
- data/lib/material/concerns/site.rb +2 -1
- data/lib/material/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc011f11790c4395ee4dedf125b9ae64493a83381e67ce160b71fe13e3b0004d
|
4
|
+
data.tar.gz: 941a9be1d46eabc029020f8a6aa9ea98ed90bde382e4832e2045c0d37e29ab9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
19
|
+
route_key = public_send(route_key_method)
|
19
20
|
"#{route_key}_path".to_sym if route_key.present?
|
20
21
|
end
|
21
22
|
|
data/lib/material/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|