associationist 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9835646291edd9f2d75a26abc8f3b91fcd411a1
4
- data.tar.gz: 941be132ac91bb5d37e524d59d473dfc77ac62cb
3
+ metadata.gz: 5dc42ac69ef4e8beec23a8567406fa076dab9f64
4
+ data.tar.gz: de294aa901979338765ddd720b32e65804b83b76
5
5
  SHA512:
6
- metadata.gz: aaafd92115b6034cbd557d317399124076ffeac833d7209cabd2b167a5307571a063dd2388f986458ea5792e36b41be35fcadd273a21042849405b20e1f85174
7
- data.tar.gz: 178b0ee74e1494e0f10622a1e0d9c35d55fd270722106279d1c71d9023b4175537929495aac5ea170e0fe80e7ef4698aaf212eaf08351a52579af36b2ffbfe48
6
+ metadata.gz: e263253c65967cde5e4b30d2821e8807ca5ecfb12ff0f05721da7dfa746312982fbaf998fc8b2497b801cb9a13632b41996d0163a397f6bb9d57e976d7ac101e
7
+ data.tar.gz: 604af5c76a3c90963b003804734f16fbe3f99a64e9f31d0d6e2de4daeee2d51fd56a9a2554bf26120fea00ccf00d016f100b70069238cd0f2bc8c8b8c5c8f798
@@ -13,6 +13,10 @@ module Associationist
13
13
  false
14
14
  end
15
15
 
16
+ def klass
17
+ association_scope.klass
18
+ end
19
+
16
20
  case
17
21
  when ActiveRecord.version < Gem::Version.new('5.2.0')
18
22
  def skip_statement_cache?
@@ -23,7 +23,7 @@ module Associationist
23
23
 
24
24
  def klass
25
25
  if reflection.config.scope_proc
26
- super
26
+ association_scope.klass
27
27
  else
28
28
  Object
29
29
  end
@@ -9,6 +9,10 @@ module Associationist
9
9
 
10
10
  end
11
11
 
12
+ def has_cached_counter?
13
+ false
14
+ end
15
+
12
16
  def config
13
17
  options[:associationist]
14
18
  end
@@ -13,6 +13,10 @@ module Associationist
13
13
  false
14
14
  end
15
15
 
16
+ def has_cached_counter?
17
+ false
18
+ end
19
+
16
20
  def config
17
21
  options[:associationist]
18
22
  end
@@ -1,3 +1,3 @@
1
1
  module Associationist
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
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.1
4
+ version: 0.1.2
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-30 00:00:00.000000000 Z
11
+ date: 2019-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord