association_selection 0.1.0 → 0.1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/association_selection/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d536e3d80c950ac5f58b17cffe0588333599ffc23982c29035c6e696a0eadcfb
|
4
|
+
data.tar.gz: 70fe4458f723dfa8842caeb02ee23e96c0b8dabfa3a1aab4ff9bf2f5a70dba2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 513288de59dfb7123c02a1520d03c69406c8f94a953327e32a77611655a9488be77a8aa9853430d32e65582c177b24ddcf66e8dcfec2e0d215ddc810fefbe007
|
7
|
+
data.tar.gz: e8375f2c69711a9efdd03ace73ca5b8cd45852d0f4dca645307ce4bd01036447f8b8d4e3994db1fe78d3b70466d6d28957abaf7d60c7c810dcac751d29ecfae5
|
data/README.md
CHANGED
@@ -73,7 +73,7 @@ end
|
|
73
73
|
#### Query
|
74
74
|
```ruby
|
75
75
|
# Preload employees with only selected fields
|
76
|
-
departments = Department.assoc_select(:
|
76
|
+
departments = Department.assoc_select(employees: %i[id name department_id]).includes(:employees)
|
77
77
|
|
78
78
|
departments.each do |department|
|
79
79
|
department.employees.each do |employee|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: association_selection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vương Khải Hà
|
@@ -31,6 +31,9 @@ homepage: https://github.com/vuong-khai-ha/association_selection
|
|
31
31
|
licenses:
|
32
32
|
- MIT
|
33
33
|
metadata:
|
34
|
+
bug_tracker_uri: https://github.com/vuong-khai-ha/association_selection/issues
|
35
|
+
changelog_uri: https://github.com/vuong-khai-ha/association_selection/releases/tag/v0.1.2.1
|
36
|
+
source_code_uri: https://github.com/vuong-khai-ha/association_selection/tree/v0.1.2.1
|
34
37
|
rubygems_mfa_required: 'true'
|
35
38
|
post_install_message:
|
36
39
|
rdoc_options: []
|
@@ -47,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
47
50
|
- !ruby/object:Gem::Version
|
48
51
|
version: '0'
|
49
52
|
requirements: []
|
50
|
-
rubygems_version: 3.5.
|
53
|
+
rubygems_version: 3.5.5
|
51
54
|
signing_key:
|
52
55
|
specification_version: 4
|
53
56
|
summary: Select fields for ActiveRecord associations
|