associationist 0.1 → 0.1.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
  SHA1:
3
- metadata.gz: 27b905930acb0b05cc8b74393d757d4a5e919cc9
4
- data.tar.gz: 322a91a2c6ab442a459e300a1931500e3d7e0078
3
+ metadata.gz: a9835646291edd9f2d75a26abc8f3b91fcd411a1
4
+ data.tar.gz: 941be132ac91bb5d37e524d59d473dfc77ac62cb
5
5
  SHA512:
6
- metadata.gz: 78a23a841019a1846b7ad0a69255cd957bd71625097e62a189e592011e6d77c7616ffaddbbea5adb118b455594341f85f39cfa665362363ff95eb6c038fa1b6d
7
- data.tar.gz: 29c50724108473603101ba3c167199decffeaae60fafeb995f376e21ac1d25dd784cd73526407a335a716db9ae132c3e8a5c03c4435878678be6aa7386fecc4e
6
+ metadata.gz: aaafd92115b6034cbd557d317399124076ffeac833d7209cabd2b167a5307571a063dd2388f986458ea5792e36b41be35fcadd273a21042849405b20e1f85174
7
+ data.tar.gz: 178b0ee74e1494e0f10622a1e0d9c35d55fd270722106279d1c71d9023b4175537929495aac5ea170e0fe80e7ef4698aaf212eaf08351a52579af36b2ffbfe48
@@ -5,6 +5,14 @@ module Associationist
5
5
  reflection.config.scope_proc.call(owner)
6
6
  end
7
7
 
8
+ def find_target?
9
+ !loaded?
10
+ end
11
+
12
+ def null_scope?
13
+ false
14
+ end
15
+
8
16
  case
9
17
  when ActiveRecord.version < Gem::Version.new('5.2.0')
10
18
  def skip_statement_cache?
@@ -18,7 +18,7 @@ module Associationist
18
18
  end
19
19
 
20
20
  def find_target?
21
- !loaded? && !owner.new_record?
21
+ !loaded?
22
22
  end
23
23
 
24
24
  def klass
@@ -1,3 +1,3 @@
1
1
  module Associationist
2
- VERSION = '0.1'
2
+ VERSION = '0.1.1'
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'
4
+ version: 0.1.1
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-26 00:00:00.000000000 Z
11
+ date: 2019-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord