associationist 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: 5dc42ac69ef4e8beec23a8567406fa076dab9f64
4
- data.tar.gz: de294aa901979338765ddd720b32e65804b83b76
3
+ metadata.gz: aead1e1e8f9fd3e97be3318e87ba887a2812bbaf
4
+ data.tar.gz: 58d660e6959229c7a25edb8e5751bbc823d56d50
5
5
  SHA512:
6
- metadata.gz: e263253c65967cde5e4b30d2821e8807ca5ecfb12ff0f05721da7dfa746312982fbaf998fc8b2497b801cb9a13632b41996d0163a397f6bb9d57e976d7ac101e
7
- data.tar.gz: 604af5c76a3c90963b003804734f16fbe3f99a64e9f31d0d6e2de4daeee2d51fd56a9a2554bf26120fea00ccf00d016f100b70069238cd0f2bc8c8b8c5c8f798
6
+ metadata.gz: de2cba23be869308edfab2ef38b4e5917da0febe76649f7ecf9f3d506a9b55fc5ec480b1ff2736caabaf5d598662ab27d6d45ed7decd3361c34a5be46170deae
7
+ data.tar.gz: 0ba2a56191d7fe9144c86fffdd7278bae52e4bb64a2fdc61dfd6f18adcc62a45796acff67f7ecf35a5461cbc849cde20e585e94d4ac27d160bfa7991748b225f
@@ -30,6 +30,10 @@ module Associationist
30
30
  end
31
31
  end
32
32
  end
33
+
34
+ def preloaded_records
35
+ @owners.flat_map { |owner| owner.association(@reflection.name).target }
36
+ end
33
37
  end
34
38
 
35
39
  end
@@ -1,3 +1,3 @@
1
1
  module Associationist
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: associationist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - CicholGricenchos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-31 00:00:00.000000000 Z
11
+ date: 2019-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord