power_enum 3.0.1 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/power_enum/reflection.rb +4 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b39bcade27495ba688e133624698a3ceee5bb110
4
- data.tar.gz: 4746b9693e7654d1aebe60d4ea630238f86049ec
3
+ metadata.gz: 62f78fa7a580eaeb3f024857990083633b16bb84
4
+ data.tar.gz: e2d6b28e0ac710338ac343cbc6f82ca889eeb258
5
5
  SHA512:
6
- metadata.gz: 740aeb7bfa76588c6fdc3409997154c06109ce7f24aeacb3b615d48fe5e8b02fb9a2a2adf58ab3c762057a242b812122b569379f1e0420c9152a20d0a69af4b1
7
- data.tar.gz: 346e432d2668bc26bf21a9a6145f5ee1642ddf8e07981a698e418a5896ecfb9744e4cd21c5b5e27f760e4f92d681a4bd464910ae52cf13d578dc320127f5dd6d
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.1
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-08-20 00:00:00.000000000 Z
14
+ date: 2017-12-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler