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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6fb7c7317ba8cf62a11d85ff6774f3ae5880069cfe57982d1b2acc2b091bce28
4
- data.tar.gz: aba4e0ec50f24443a17f4a2a06a78722e29da8c2dad11f840a0297ff73184177
3
+ metadata.gz: d536e3d80c950ac5f58b17cffe0588333599ffc23982c29035c6e696a0eadcfb
4
+ data.tar.gz: 70fe4458f723dfa8842caeb02ee23e96c0b8dabfa3a1aab4ff9bf2f5a70dba2d
5
5
  SHA512:
6
- metadata.gz: 47c5217acea4a685025595c0a8181b3f877a0c842ae06e342132390cb2a3e3131c2dcb86ba52ba7c4a929dbf9b35d6250d0cfd2ee11931da840a31731b98f587
7
- data.tar.gz: ea5017c30fcd1faee3a680f390f01b755a066d74a4875ddf0409a6646434d68de6e797d99c8eeec1f8324993e38c1ba95e89bf28665d89f9f9b0fe93409a16a5
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(:employees, :id, :name).includes(:employees)
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|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AssociationSelection
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.2.1'
5
5
  end
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.0
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.22
53
+ rubygems_version: 3.5.5
51
54
  signing_key:
52
55
  specification_version: 4
53
56
  summary: Select fields for ActiveRecord associations