pattern_query_helper 0.2.4 → 0.2.5

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
- SHA256:
3
- metadata.gz: 9f0fe768952212e8b6a240fc7cee61e3dc768ae1aa41791c7e91761dbc2836c8
4
- data.tar.gz: f2546fc691f1bdccca39f10fdabcbc2d419df7e9241a957986af9a2b0fe3bd4a
2
+ SHA1:
3
+ metadata.gz: 7ba28c50b8182b282a395344c179d5a6329d5fcf
4
+ data.tar.gz: 6e49fce6551458c99ff19865155f26c9791cc5d4
5
5
  SHA512:
6
- metadata.gz: 1d9b94902b4ffc1ed5201c25edc7f34717ad01f575202692f48e111a692f208ed1efe88e289510577659090729d380f69537766f7193df6854f369950270be46
7
- data.tar.gz: 483a160eaaac70209bfbde5642b55516a1bb50ba36566fa0b1bfa85f792ad7795962f5c667c5bf3325b284f8c624296f4ce648950d8cef76cd3145c6f1e1f80e
6
+ metadata.gz: 524be27175d2e7184876227ebc9e0e2066c5913e79deca6227e61057fb4036bef66549f337652d6187013c64e54d30e66134624cf83185882a9625598b5310f4
7
+ data.tar.gz: fd6db4e9904794269808cbc9de802b49f49987a72f8ee3cfa83542ae78e9eaeffdf71febaf9b2c4af1448ff3399e9bc139e672d6e62d59e92e6dff28120f9fed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pattern_query_helper (0.2.4)
4
+ pattern_query_helper (0.2.5)
5
5
  activerecord (~> 5.0)
6
6
  kaminari (~> 1.1.1)
7
7
 
@@ -10,8 +10,9 @@ module PatternQueryHelper
10
10
  end
11
11
 
12
12
  def self.load_associations(payload, associations, as_json_options)
13
+ as_json_options ||= {}
14
+ as_json_options[:include] = as_json_options[:include] || json_associations(associations)
13
15
  ActiveRecord::Associations::Preloader.new.preload(payload, associations)
14
- as_json_options ||= { include: json_associations(associations) }
15
16
  payload.as_json(as_json_options)
16
17
  end
17
18
 
@@ -1,3 +1,3 @@
1
1
  module PatternQueryHelper
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pattern_query_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan McDaniel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-05 00:00:00.000000000 Z
11
+ date: 2019-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  requirements: []
171
171
  rubyforge_project:
172
- rubygems_version: 2.7.6
172
+ rubygems_version: 2.6.14
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: Ruby Gem to help with pagination and data formatting at Pattern, Inc.