activerecord 3.2.21 → 3.2.22
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activerecord might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d685d6b2e0591a43ef4db163eaacb4719da9b4ff
|
4
|
+
data.tar.gz: b459417898a13e28e215bcab931e45acb6a6b420
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e67ea6890e20adc8301230ed16d969ff4fb87a792f37cd4dc9436033f557bf319897b0b9e9ebe55d24d397ba1de730fc879f7fb2186f92f7002eacd70f52c5fb
|
7
|
+
data.tar.gz: b053ac5da94cd12748373ff954db55f6a5fda9dccd6953a4e47a36909d71dd32ad1f53675fdf91f2faa3edbe3ae6d4362f4a50e5e85179405b44fcd1ac42cd1f
|
data/CHANGELOG.md
CHANGED
@@ -50,15 +50,15 @@ module ActiveRecord
|
|
50
50
|
[options[:limit], count].compact.min
|
51
51
|
end
|
52
52
|
|
53
|
-
def has_cached_counter?(reflection = reflection)
|
53
|
+
def has_cached_counter?(reflection = self.reflection)
|
54
54
|
owner.attribute_present?(cached_counter_attribute_name(reflection))
|
55
55
|
end
|
56
56
|
|
57
|
-
def cached_counter_attribute_name(reflection = reflection)
|
57
|
+
def cached_counter_attribute_name(reflection = self.reflection)
|
58
58
|
"#{reflection.name}_count"
|
59
59
|
end
|
60
60
|
|
61
|
-
def update_counter(difference, reflection = reflection)
|
61
|
+
def update_counter(difference, reflection = self.reflection)
|
62
62
|
if has_cached_counter?(reflection)
|
63
63
|
counter = cached_counter_attribute_name(reflection)
|
64
64
|
owner.class.update_counters(owner.id, counter => difference)
|
@@ -77,7 +77,7 @@ module ActiveRecord
|
|
77
77
|
# it will be decremented twice.
|
78
78
|
#
|
79
79
|
# Hence this method.
|
80
|
-
def inverse_updates_counter_cache?(reflection = reflection)
|
80
|
+
def inverse_updates_counter_cache?(reflection = self.reflection)
|
81
81
|
counter_name = cached_counter_attribute_name(reflection)
|
82
82
|
reflection.klass.reflect_on_all_associations(:belongs_to).any? { |inverse_reflection|
|
83
83
|
inverse_reflection.counter_cache_column == counter_name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.2.
|
19
|
+
version: 3.2.22
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.2.
|
26
|
+
version: 3.2.22
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activemodel
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.2.
|
33
|
+
version: 3.2.22
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.2.
|
40
|
+
version: 3.2.22
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: arel
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -246,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
246
246
|
version: '0'
|
247
247
|
requirements: []
|
248
248
|
rubyforge_project:
|
249
|
-
rubygems_version: 2.4.
|
249
|
+
rubygems_version: 2.4.5
|
250
250
|
signing_key:
|
251
251
|
specification_version: 4
|
252
252
|
summary: Object-relational mapper framework (part of Rails).
|