material 0.3.2 → 0.3.3

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: ae5bf6bf153b1fa100cebe4ea13d3a7ba20a79374ff5626d3a4ec8b44cd5a3a6
4
- data.tar.gz: 8d984346ca9f237924c355b764a31b10d2233ae2cb43e480e479b04a62f34644
3
+ metadata.gz: 001e76c7524044c648cc550bea30c45e0231e1325ac42a3a34bcc88e94830047
4
+ data.tar.gz: 263cf16e1bc92aa6b26d8edcc35115470b1e52fb870c4a4cf425f9bb76b4e1d1
5
5
  SHA512:
6
- metadata.gz: 6a2627409267389177df754ab48ef325869eba981e9a2d88678b15591e33afdd9c8a3e641f65030c2742be063e8cda7f9d36dd7d429608666002f362e49f0f26
7
- data.tar.gz: a87c4c65d920455b70b87ed946f835297dd4b97ab0e4d74c221cf6e952ea154d68afc0cfc4c26351c9effb78de0d9be31f17d8d2736a5e1a0bc579abd2deac6c
6
+ metadata.gz: 286ac8f5d74bab70ae04a6fc98e964d96cc2c74f5c500cdaaf6b2b6e30121dd4ecfb52beae6405225c0b6d8314b844c0550aa29e9613dd45e2880dfd5b2dec66
7
+ data.tar.gz: 9b5f40da273be9b2d5e45e98246fb8b94575e163add6848185e25a5922cb3468f2086f3bf5336b9a8e7ecefeb456ad70cc714cf50f7701c62fae480b8279be2a
@@ -55,7 +55,7 @@ module Material
55
55
  private
56
56
 
57
57
  def default_title
58
- source.try(:title) || source.try(:name) || self.class.try(:model_name)&.human || self.class.name
58
+ source.try(:title) || source.try(:name) || try(:model_name)&.human || source.class.name
59
59
  end
60
60
  end
61
61
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Material
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.3"
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.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Garside
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-07 00:00:00.000000000 Z
11
+ date: 2020-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport