power_enum 3.0.1 → 3.1.0
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 +4 -4
- data/lib/power_enum/reflection.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62f78fa7a580eaeb3f024857990083633b16bb84
|
|
4
|
+
data.tar.gz: e2d6b28e0ac710338ac343cbc6f82ca889eeb258
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9df60352bf0960811460e14c38a97e792369f9d46cd4378c95ca7983f384abb38e0f018870802f74c12f24713af152e896cf8955c615fbb23f7ed6cbdcf1441c
|
|
7
|
+
data.tar.gz: 27ef578eb74cfbef342cd50c310f72f3f9c16fc49c8c13e9d2f325dbe7cf1cca06523765adce1ffd1ed31e6379772ad974210932f54b970aefb51b76a8fcdc6c
|
|
@@ -67,6 +67,10 @@ of these associations is deprecated and will be removed in the future.
|
|
|
67
67
|
@klass ||= active_record.send(:compute_type, class_name)
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
+
def association_class
|
|
71
|
+
::ActiveRecord::Associations::HasOneAssociation
|
|
72
|
+
end
|
|
73
|
+
|
|
70
74
|
EnumJoinKeys = Struct.new(:key, :foreign_key)
|
|
71
75
|
|
|
72
76
|
def join_keys(*_)
|
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: 3.0
|
|
4
|
+
version: 3.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Trevor Squires
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2017-
|
|
14
|
+
date: 2017-12-11 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: bundler
|