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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 280355f5754df05ef965218bd9a35fb6f83b654dc534b2fce7cc903c47422fc2
|
4
|
+
data.tar.gz: 8ad2aa010faba09069bddb9d466d602d1dbc5c34ce052d82e96187c7bb2daa7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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|
|
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.
|
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.
|
165
|
+
rubygems_version: 3.0.3
|
166
166
|
signing_key:
|
167
167
|
specification_version: 4
|
168
168
|
summary: A JSONAPI compliant API for AlchemyCMS
|