material 0.2.16 → 0.2.17

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: 3e4394abb4ab137cd58102334c5bd9e5a0d067b3cf45d30467fa588cf90922d6
4
- data.tar.gz: 1db64dea462b744474e883a6071c632ce405000798e9713cfb745e520d7940d1
3
+ metadata.gz: 4ce7a43333c4e91fbd543866ef17d44aaa3f9baf65695c03298dbbd6c564ace6
4
+ data.tar.gz: 10d27d82ab8b85155dce1d7a75d35b2018af32e7beda7122fe44659ab74e780b
5
5
  SHA512:
6
- metadata.gz: caa5726c80b86d614122a5f896f4a9b4c9c2fc745f3ccd336a2f6ab5cb7fc53f0d7b311eb533d48b54ee608a7a2afb8747f84564db970c0c33af50a967280388
7
- data.tar.gz: cb533f75d92664e658b783b6a3a88b4c06f8ada690e269b9fff7d2a15505a9c183a2a5b4dfb2ce33ac51045b2216190266d6f505c349eaf21d3499fd73c10245
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Material
4
- VERSION = "0.2.16"
4
+ VERSION = "0.2.17"
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.16
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 00:00:00.000000000 Z
11
+ date: 2019-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport