jsonapi-resources 0.10.0.beta6 → 0.10.0.beta7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jsonapi/basic_resource.rb +6 -4
- data/lib/jsonapi/resources/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 600d53bfd0a54392487da779289e4c6296ca68b39429863c0f49e2a740236311
|
4
|
+
data.tar.gz: 7c04975340f8632e652e022888500db99fdea792000df8450a59a83c2c780ded
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 903579db17ede3765982689be35254ed7315e1877bbf4f15c4f00a94a5829dbaeddb99326e617244233e2249b7fe3d6ba89d89c1a8902e2b03a88b3d18c65fe6
|
7
|
+
data.tar.gz: a905f778a2ab6c7a64ea32f218f53b70bab84a087af8e86c09234800172a693dab199ffcd9a724afe3c0d3b88eb368b7cfc6edc8ef66f1fa7f01dd54bbcc6a7b
|
@@ -422,11 +422,13 @@ module JSONAPI
|
|
422
422
|
subclass.abstract(false)
|
423
423
|
subclass.immutable(false)
|
424
424
|
subclass.caching(_caching)
|
425
|
+
subclass.cache_field(_cache_field) if @_cache_field
|
425
426
|
subclass.singleton(singleton?, (_singleton_options.dup || {}))
|
426
427
|
subclass.exclude_links(_exclude_links)
|
427
|
-
subclass.paginator(_paginator)
|
428
|
+
subclass.paginator(@_paginator)
|
428
429
|
subclass._attributes = (_attributes || {}).dup
|
429
430
|
subclass.polymorphic(false)
|
431
|
+
subclass.key_type(@_resource_key_type)
|
430
432
|
|
431
433
|
subclass._model_hints = (_model_hints || {}).dup
|
432
434
|
|
@@ -755,7 +757,7 @@ module JSONAPI
|
|
755
757
|
end
|
756
758
|
|
757
759
|
def resource_key_type
|
758
|
-
@_resource_key_type
|
760
|
+
@_resource_key_type || JSONAPI.configuration.resource_key_type
|
759
761
|
end
|
760
762
|
|
761
763
|
# override to all resolution of masked ids to actual ids. Because singleton routes do not specify the id this
|
@@ -878,7 +880,7 @@ module JSONAPI
|
|
878
880
|
end
|
879
881
|
|
880
882
|
def _cache_field
|
881
|
-
@_cache_field
|
883
|
+
@_cache_field || JSONAPI.configuration.default_resource_cache_field
|
882
884
|
end
|
883
885
|
|
884
886
|
def _table_name
|
@@ -898,7 +900,7 @@ module JSONAPI
|
|
898
900
|
end
|
899
901
|
|
900
902
|
def _paginator
|
901
|
-
@_paginator
|
903
|
+
@_paginator || JSONAPI.configuration.default_paginator
|
902
904
|
end
|
903
905
|
|
904
906
|
def paginator(paginator)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonapi-resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.0.
|
4
|
+
version: 0.10.0.beta7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Gebhardt
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-07-
|
12
|
+
date: 2019-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|