power_enum 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/power_enum/reflection.rb +4 -2
- metadata +3 -3
@@ -23,8 +23,8 @@ module PowerEnum::Reflection
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Extend associations with enumerations, preferring enumerations
|
26
|
-
def reflect_on_all_associations_with_enumeration
|
27
|
-
reflect_on_all_enumerated + reflect_on_all_associations_without_enumeration
|
26
|
+
def reflect_on_all_associations_with_enumeration(macro = nil)
|
27
|
+
reflect_on_all_enumerated + reflect_on_all_associations_without_enumeration(macro)
|
28
28
|
end
|
29
29
|
|
30
30
|
# Extend associations with enumerations, preferring enumerations
|
@@ -34,6 +34,8 @@ module PowerEnum::Reflection
|
|
34
34
|
end
|
35
35
|
|
36
36
|
class EnumerationReflection < ActiveRecord::Reflection::MacroReflection
|
37
|
+
attr_reader :counter_cache_column
|
38
|
+
|
37
39
|
def initialize( name, options, active_record )
|
38
40
|
super :has_enumerated, name, options, active_record
|
39
41
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: power_enum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2013-01-
|
15
|
+
date: 2013-01-09 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rails
|
@@ -145,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
segments:
|
147
147
|
- 0
|
148
|
-
hash: -
|
148
|
+
hash: -3615049416970020221
|
149
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
150
|
none: false
|
151
151
|
requirements:
|