material 0.2.16 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/material/concerns/collection.rb +5 -0
- 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: 4ce7a43333c4e91fbd543866ef17d44aaa3f9baf65695c03298dbbd6c564ace6
|
|
4
|
+
data.tar.gz: 10d27d82ab8b85155dce1d7a75d35b2018af32e7beda7122fe44659ab74e780b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec18b5547716e8922633f2c4551194a35cce2cf0590f91d4cc503af7eedef1adfa63cfa2afa09da94ca3456a19daeef16e85e394bf4d12dfc4bfde506f7bdcf4
|
|
7
|
+
data.tar.gz: 2565c141f5d130380c68cfaba6163e2de8540ba88f576f728a72a2e1dfcc40c8a9347512686bf2c21ec4fe180da56180d9eb30350aaca2d4819408b134c18015
|
|
@@ -4,6 +4,11 @@ module Material
|
|
|
4
4
|
module Collection
|
|
5
5
|
extend ActiveSupport::Concern
|
|
6
6
|
|
|
7
|
+
included do
|
|
8
|
+
delegate :item_class, to: :class
|
|
9
|
+
delegate :model_name, to: :item_class
|
|
10
|
+
end
|
|
11
|
+
|
|
7
12
|
class_methods do
|
|
8
13
|
def item_class
|
|
9
14
|
return item_enforcement if item_enforcement.is_a?(Class)
|
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.17
|
|
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-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|