material 0.3.9 → 0.3.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d972ea75601e360fcd9deb6d09e77a0fadda33bc636a4374ff3491a7a47bd03
4
- data.tar.gz: 3511cb81aa6c1a844b56c621e59b2b2be82dd373ef21e83af87644ff605aceaf
3
+ metadata.gz: 55c54ede65982a1551182cc0cb0651d7620b2bc8698e14d6054d6a903a6a698c
4
+ data.tar.gz: 8891beca63b2a734c4a4b6547e62b598eb72d4c5e2a1ffd0f15f8b03ac67b313
5
5
  SHA512:
6
- metadata.gz: 9a36fe4bae755b85dbd7a256da96538018cab21e4a7318b55a13d029ac7c84ce3fedcfc528aea94aabe6ef675605ec6588e35daa867dc0b9d0d885255cf3f772
7
- data.tar.gz: 3aec2f98cef993c11d93316ec54e4894336e30a2dc6c19193b791b44a9d9a73a4e6355138cae5f9bcaf6c7315eefb772d569b99bacc0ee131f036780609f0ece
6
+ metadata.gz: d706929637cc0710457be01a3c5f348d5e47a27a04249ec05cf8e17e1b6129c06642634790cd28df32f58d3633a512870570bb83b3831ddfdd8a03f629c50026
7
+ data.tar.gz: bcff973dd0969b39d57fd7241128df16e3589431dba157d8d3ad1d30d6b4c842ddf8a9496fb988a4cdea6f97bd6c8b07915c1aa82ca96fc7c7a898388f0a48d2
@@ -29,7 +29,7 @@ module Material
29
29
  end
30
30
 
31
31
  def display_attributes
32
- attribute_names
32
+ (attribute_names + relationship_attributes).uniq
33
33
  end
34
34
 
35
35
  def attribute_values
@@ -55,7 +55,7 @@ module Material
55
55
  end
56
56
 
57
57
  def relationship_attributes
58
- source_class.reflect_on_all_associations.map(&:foreign_key)
58
+ source_class.reflect_on_all_associations.map(&:name).map(&:to_s)
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.9"
4
+ VERSION = "0.3.10"
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Garside
8
8
  - Brandon Trumpold
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-05-22 00:00:00.000000000 Z
12
+ date: 2025-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -214,7 +214,7 @@ homepage: https://github.com/Freshly/material
214
214
  licenses:
215
215
  - MIT
216
216
  metadata: {}
217
- post_install_message:
217
+ post_install_message:
218
218
  rdoc_options: []
219
219
  require_paths:
220
220
  - lib
@@ -229,9 +229,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  - !ruby/object:Gem::Version
230
230
  version: '0'
231
231
  requirements: []
232
- rubyforge_project:
233
- rubygems_version: 2.7.6
234
- signing_key:
232
+ rubygems_version: 3.5.9
233
+ signing_key:
235
234
  specification_version: 4
236
235
  summary: Wrap your records with a presentation layer without cannibalizing view responsibility.
237
236
  test_files: []