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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ac7e65d3c40e15413e9d5a7552a8f871a2313c9f9d41f4cd520ab62f8e3c7d8
4
- data.tar.gz: 7ba4da6469f82a35eee2df2e3475d6fb28f6b229bc78863f57c5c1576cf9973e
3
+ metadata.gz: 600d53bfd0a54392487da779289e4c6296ca68b39429863c0f49e2a740236311
4
+ data.tar.gz: 7c04975340f8632e652e022888500db99fdea792000df8450a59a83c2c780ded
5
5
  SHA512:
6
- metadata.gz: a2ee268639e83ea3f490258f85ba8fe13785f31fd85d3a5b46cc92d7c340f3ba95f3316ca1dfcf2f33a92f31e17c023aa093d39d53b39d3c48cf8c9af22cd7ad
7
- data.tar.gz: 76a30f8af5d5569cf40f979f296dc90e95a83f5f57b178c977ba8067755e20d5ac5e46f588f3bed4dddaf587faf7d6081e04b7116657af4d65faa6f858472a0f
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 ||= JSONAPI.configuration.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 ||= JSONAPI.configuration.default_resource_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 ||= JSONAPI.configuration.default_paginator
903
+ @_paginator || JSONAPI.configuration.default_paginator
902
904
  end
903
905
 
904
906
  def paginator(paginator)
@@ -1,5 +1,5 @@
1
1
  module JSONAPI
2
2
  module Resources
3
- VERSION = '0.10.0.beta6'
3
+ VERSION = '0.10.0.beta7'
4
4
  end
5
5
  end
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.beta6
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-09 00:00:00.000000000 Z
12
+ date: 2019-07-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler