material 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/material/list.rb +1 -1
- data/lib/material/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae5bf6bf153b1fa100cebe4ea13d3a7ba20a79374ff5626d3a4ec8b44cd5a3a6
|
4
|
+
data.tar.gz: 8d984346ca9f237924c355b764a31b10d2233ae2cb43e480e479b04a62f34644
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a2627409267389177df754ab48ef325869eba981e9a2d88678b15591e33afdd9c8a3e641f65030c2742be063e8cda7f9d36dd7d429608666002f362e49f0f26
|
7
|
+
data.tar.gz: a87c4c65d920455b70b87ed946f835297dd4b97ab0e4d74c221cf6e952ea154d68afc0cfc4c26351c9effb78de0d9be31f17d8d2736a5e1a0bc579abd2deac6c
|
data/lib/material/list.rb
CHANGED
@@ -16,7 +16,7 @@ module Material
|
|
16
16
|
|
17
17
|
class << self
|
18
18
|
def for(object)
|
19
|
-
klass = for_class(object.respond_to?(:first) ? object.first : object)
|
19
|
+
klass = for_class((object.respond_to?(:to_ary) && object.respond_to?(:first)) ? object.first : object)
|
20
20
|
materialize(object, klass) if klass.present?
|
21
21
|
end
|
22
22
|
|
data/lib/material/version.rb
CHANGED