alchemy-json_api 0.7.0 → 0.7.1

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: 117c65c9f829b02d27cc3bc000c9a9f796816c4c7d5a99fb191752d3f0a4c6d2
4
- data.tar.gz: 1a51fb6c7d8ed4987c2393f37acbf6f4d601ffa4e2c11a9a0af415624c17e938
3
+ metadata.gz: 280355f5754df05ef965218bd9a35fb6f83b654dc534b2fce7cc903c47422fc2
4
+ data.tar.gz: 8ad2aa010faba09069bddb9d466d602d1dbc5c34ce052d82e96187c7bb2daa7b
5
5
  SHA512:
6
- metadata.gz: 448e55aac748eda835d9341b784e28907fa5159251974ff1a2cf12d365a7f1cdcd892d8565ef4c1fcdc0fa74ab27de0273e20d7fbf1dc0955f7009fd7f73c8c2
7
- data.tar.gz: d6ede97400574f3e02aac76adb72923dc5aae7f1979dea08302d59d2c8ec6aa2500d972b26cf39daec98deb10f1ce8e2811f2b09060939260faa4f26a4e8992e
6
+ metadata.gz: 80bd161a6f0b2ff1a9f5d393aad8f2d628a6177cf41443d23f0fa8638a66189600a9f43f71e3b7205ca94a9af00b937a0ecf7645e29ea512132a714fe1a4a6bb
7
+ data.tar.gz: a71c19f108eff5b51468687ad628173aa32e2e08e0b471c939582f289cea7009690451a7eff0e1a3c2e94724fbd5c52bcd0f4f70a449a80b4d6b3b10ba0a21c3
@@ -12,7 +12,8 @@ module Alchemy
12
12
  )
13
13
  belongs_to :parent_element, record_type: :element, serializer: self
14
14
 
15
- belongs_to :page
15
+ belongs_to :page, record_type: :page, serializer: PageSerializer
16
+
16
17
  has_many :essences, polymorphic: true do |element|
17
18
  element.contents.map(&:essence)
18
19
  end
@@ -10,7 +10,7 @@ module Alchemy
10
10
  essence&.node&.name
11
11
  end
12
12
 
13
- belongs_to :node
13
+ belongs_to :node, record_type: :node, serializer: NodeSerializer
14
14
 
15
15
  with_options if: proc { |essence| essence.node.present? } do
16
16
  attribute :name do |essence|
@@ -15,9 +15,9 @@ module Alchemy
15
15
  :updated_at,
16
16
  )
17
17
 
18
- belongs_to :language
18
+ belongs_to :language, record_type: :language, serializer: LanguageSerializer
19
19
 
20
- has_many :elements
20
+ has_many :elements, record_type: :element, serializer: ElementSerializer
21
21
  has_many :fixed_elements, record_type: :element, serializer: ElementSerializer
22
22
 
23
23
  has_many :all_elements, record_type: :element, serializer: ElementSerializer do |page|
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Alchemy
3
3
  module JsonApi
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy-json_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Meyerhoff
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  - !ruby/object:Gem::Version
163
163
  version: '0'
164
164
  requirements: []
165
- rubygems_version: 3.1.4
165
+ rubygems_version: 3.0.3
166
166
  signing_key:
167
167
  specification_version: 4
168
168
  summary: A JSONAPI compliant API for AlchemyCMS