activerecord-precount 0.7.0.beta1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/active_record/precount/reflection_extension.rb +1 -1
- data/lib/active_record/precount/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bd7e4db6a99a46dc4d264d1829bbd116a9442bb
|
4
|
+
data.tar.gz: 685f56a36db6b2706426b5ac18272efac6e2f78b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e55ce8c8c1454ae49e15735d97d29515ac59f451bec6239d8ea5a3b18d829e18ddd9a68f566687a4dbb37fc93b01c9917bb8fb9ca44ef2943301682a05ae4a3d
|
7
|
+
data.tar.gz: 3ac6239be3734be125d661279d9db6db00371f7593b5c46859661521cece392d972bb860d5d7f94b630c8162b5c0c07cc23a5a8475665c7ad3cbf7367d8bbd98
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v0.7.0.beta1](https://github.com/k0kubun/activerecord-precount/tree/v0.7.0.beta1) (2017-06-27)
|
4
|
+
[Full Changelog](https://github.com/k0kubun/activerecord-precount/compare/v0.6.3...v0.7.0.beta1)
|
5
|
+
|
6
|
+
**Closed issues:**
|
7
|
+
|
8
|
+
- Rails 5.1 ActionView::Template::Error: undefined method `map' for nil:NilClass [\#24](https://github.com/k0kubun/activerecord-precount/issues/24)
|
9
|
+
- fatal \(exception reentered\): [\#22](https://github.com/k0kubun/activerecord-precount/issues/22)
|
10
|
+
|
11
|
+
**Merged pull requests:**
|
12
|
+
|
13
|
+
- Use the latest patch version for Rails v5.1.x on ci [\#26](https://github.com/k0kubun/activerecord-precount/pull/26) ([kenju](https://github.com/kenju))
|
14
|
+
- s/query\_scope/records\_for for preloader\_extension.rb [\#25](https://github.com/k0kubun/activerecord-precount/pull/25) ([kenju](https://github.com/kenju))
|
15
|
+
|
3
16
|
## [v0.6.3](https://github.com/k0kubun/activerecord-precount/tree/v0.6.3) (2017-02-21)
|
4
17
|
[Full Changelog](https://github.com/k0kubun/activerecord-precount/compare/v0.6.2...v0.6.3)
|
5
18
|
|
@@ -5,7 +5,7 @@ module ActiveRecord
|
|
5
5
|
# When this method is called, it will be N+1 query
|
6
6
|
def load_target
|
7
7
|
count_target = reflection.name.to_s.sub(/_count\z/, '').to_sym
|
8
|
-
@target = owner.association(count_target).
|
8
|
+
@target = owner.association(count_target).size
|
9
9
|
|
10
10
|
loaded! unless loaded?
|
11
11
|
target
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-precount
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.0
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi Kokubun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -314,12 +314,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
314
314
|
version: '2.1'
|
315
315
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
316
316
|
requirements:
|
317
|
-
- - "
|
317
|
+
- - ">="
|
318
318
|
- !ruby/object:Gem::Version
|
319
|
-
version:
|
319
|
+
version: '0'
|
320
320
|
requirements: []
|
321
321
|
rubyforge_project:
|
322
|
-
rubygems_version: 2.
|
322
|
+
rubygems_version: 2.5.2
|
323
323
|
signing_key:
|
324
324
|
specification_version: 4
|
325
325
|
summary: N+1 count query killer for ActiveRecord
|