material 0.2.17 → 0.2.18

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: 4ce7a43333c4e91fbd543866ef17d44aaa3f9baf65695c03298dbbd6c564ace6
4
- data.tar.gz: 10d27d82ab8b85155dce1d7a75d35b2018af32e7beda7122fe44659ab74e780b
3
+ metadata.gz: d246ee58fe13cce3ed36bf2e664dcfb04f4cb1ddc334506f0ac7053378839d14
4
+ data.tar.gz: 15616cab061ef76e3e1e54260139037490bfd1f128acd01eccaff500b3bd210d
5
5
  SHA512:
6
- metadata.gz: ec18b5547716e8922633f2c4551194a35cce2cf0590f91d4cc503af7eedef1adfa63cfa2afa09da94ca3456a19daeef16e85e394bf4d12dfc4bfde506f7bdcf4
7
- data.tar.gz: 2565c141f5d130380c68cfaba6163e2de8540ba88f576f728a72a2e1dfcc40c8a9347512686bf2c21ec4fe180da56180d9eb30350aaca2d4819408b134c18015
6
+ metadata.gz: a4d1e9e240a51b215f4ce4582d46169526e746de792ba4f2290e09283eece8b5b55490d91d30202bedee4293089e1ae3d65131937e3fe6314973f7d91ccc461a
7
+ data.tar.gz: a31b323bd944ad2ce1e7c2ec2b3da42f8a9362b94d889a3c17829c7207a608a6336b5b95314d671d7bb7ab5982f2be8cd35d477dcb5cb9bcb51e2cf740a28c15
@@ -55,7 +55,7 @@ module Material
55
55
  private
56
56
 
57
57
  def default_title
58
- source.try(:name) || self.class.try(:model_name)&.human || self.class.name
58
+ source.try(:title) || source.try(:name) || self.class.try(:model_name)&.human || self.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.2.17"
4
+ VERSION = "0.2.18"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.17
4
+ version: 0.2.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Garside