model_driven_api 3.5.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a314e7709d9c9c7b77fd4f5ccdd39a8effa795026d0e69b09a586945776ce89
4
- data.tar.gz: 77c639a19a4c0da657b4436022e30b4468d27f885ac3f16a8bd3cffd2e47c357
3
+ metadata.gz: 81f4bf59354a604bb9040be285c3e9ed38f4e847ed945254c6ef2969f72190af
4
+ data.tar.gz: 83fd3fd82615dc3a23e8a5bad639c2fb9bbacb9ac699df1544e46f6219ec960f
5
5
  SHA512:
6
- metadata.gz: 9020280fe2d5cc0a41e32e25e198e0681c6a76730bd00f8c782fba35ae85209b7c5c9eacba8aa7e57cf72c3fd56c93eb73543a3556e3df960e209f11ac3bc657
7
- data.tar.gz: 7d2ce4d012dc38bbb8a6edbbefb8161bd242c751cb924dde1c876ed517b05d628afdee7d0854a141c93170b331bc456a3747df79543064019b04b71ea548eacc
6
+ metadata.gz: 9cd024384b0ee5ab85e40b30b0f986307f04c5ffd4a9d89b45742a02e7f629777c7da57f4af3d118b553cfc78803783baa376ccbb262f55764f513ab7d1d5958
7
+ data.tar.gz: 3f23e0f14efd400f79edfa762143f6ccbd6b6e5dab6e536b6f27631aa6260640737452a1971632cc729c2245e931ae5bf6ddc3ee74435f75c2016fff0bc5465b
@@ -3,6 +3,7 @@
3
3
  module AutoIncludeJson
4
4
  # Recursively builds a hash suitable for ActiveRecord eager loading
5
5
  def build_includes(include_option)
6
+ Rails.logger.debug "Building includes from: #{include_option.inspect} from #{caller_locations(1,1).first.label}"
6
7
  case include_option
7
8
  when Array
8
9
  include_option
@@ -49,6 +50,7 @@ module AutoIncludeRelationJson
49
50
  include AutoIncludeJson
50
51
 
51
52
  def to_json(options = nil)
53
+ Rails.logger.debug "Relation JSON to_json from #{caller_locations(1,1).first.label}"
52
54
  return super unless options.is_a?(Hash) && options[:include]
53
55
 
54
56
  includes_hash = build_includes(options[:include])
@@ -59,6 +61,7 @@ module AutoIncludeRelationJson
59
61
  end
60
62
 
61
63
  def as_json(options = nil)
64
+ Rails.logger.debug "Relation JSON as_json from #{caller_locations(1,1).first.label}"
62
65
  return super unless options.is_a?(Hash) && options[:include]
63
66
 
64
67
  includes_hash = build_includes(options[:include])
@@ -86,6 +89,7 @@ module AutoIncludeInstanceJson
86
89
  private
87
90
 
88
91
  def preload_and_sanitize!(options)
92
+ Rails.logger.debug "Instance JSON preload_and_sanitize! from #{caller_locations(1,1).first.label}"
89
93
  return unless options.is_a?(Hash) && options[:include]
90
94
 
91
95
  includes_hash = build_includes(options[:include])
@@ -1,3 +1,3 @@
1
1
  module ModelDrivenApi
2
- VERSION = "3.5.0".freeze
2
+ VERSION = "3.5.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: model_driven_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni