media_types-serialization 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/media_types/serialization/version.rb +1 -1
- data/lib/media_types/serialization/wrapper/media_collection_wrapper.rb +3 -6
- data/lib/media_types/serialization/wrapper/media_index_wrapper.rb +3 -6
- data/lib/media_types/serialization/wrapper/media_object_wrapper.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad21aa89e0b5f448619f80f72462476021515c16c95d50dc269b2a8aa889ca45
|
4
|
+
data.tar.gz: d723be10de6a6eecdb3b5b7e540db46b02ca0b5f338961bd0973ffaa957e7fe8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 612498a254d26d0288fcd035fbf18e6a84c9522069885fc30edba8898a3abc300716a2fd371d840fa65a688a9a089823d93b3aadc109e93ca052aa86d8299525
|
7
|
+
data.tar.gz: cffa94a6a3de91e71f75bd84eb7c30b8090dfdf45e179302ed2d479dea99038deee36c002af48d1a7ad7a9eeaf070a16171a92dfe6b0eb9cbf804ee6f9562f32
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -27,12 +27,9 @@ module MediaTypes
|
|
27
27
|
end
|
28
28
|
alias to_h to_hash
|
29
29
|
|
30
|
-
def
|
31
|
-
if serializable && ::MediaTypes::Serialization.collect_links_for_collection
|
32
|
-
|
33
|
-
else
|
34
|
-
{}
|
35
|
-
end
|
30
|
+
def header_links(view: current_view)
|
31
|
+
return __getobj__.send(:header_links, view: view) if serializable && ::MediaTypes::Serialization.collect_links_for_collection
|
32
|
+
{}
|
36
33
|
end
|
37
34
|
|
38
35
|
private
|
@@ -27,12 +27,9 @@ module MediaTypes
|
|
27
27
|
end
|
28
28
|
alias to_h to_hash
|
29
29
|
|
30
|
-
def
|
31
|
-
if serializable && ::MediaTypes::Serialization.collect_links_for_index
|
32
|
-
|
33
|
-
else
|
34
|
-
{}
|
35
|
-
end
|
30
|
+
def header_links(view: current_view)
|
31
|
+
return __getobj__.send(:header_links, view: view) if serializable && ::MediaTypes::Serialization.collect_links_for_index
|
32
|
+
{}
|
36
33
|
end
|
37
34
|
|
38
35
|
private
|
@@ -25,9 +25,9 @@ module MediaTypes
|
|
25
25
|
end
|
26
26
|
alias to_h to_hash
|
27
27
|
|
28
|
-
def
|
29
|
-
return
|
30
|
-
|
28
|
+
def header_links(view: current_view)
|
29
|
+
return __getobj__.send(:header_links, view: view) if serializable
|
30
|
+
{}
|
31
31
|
end
|
32
32
|
|
33
33
|
private
|