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 +5 -5
- data/Gemfile.lock +1 -1
- data/lib/pattern_query_helper/associations.rb +2 -1
- data/lib/pattern_query_helper/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7ba28c50b8182b282a395344c179d5a6329d5fcf
|
4
|
+
data.tar.gz: 6e49fce6551458c99ff19865155f26c9791cc5d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 524be27175d2e7184876227ebc9e0e2066c5913e79deca6227e61057fb4036bef66549f337652d6187013c64e54d30e66134624cf83185882a9625598b5310f4
|
7
|
+
data.tar.gz: fd6db4e9904794269808cbc9de802b49f49987a72f8ee3cfa83542ae78e9eaeffdf71febaf9b2c4af1448ff3399e9bc139e672d6e62d59e92e6dff28120f9fed
|
data/Gemfile.lock
CHANGED
@@ -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
|
|
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
|
+
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-
|
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.
|
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.
|