sql_enum 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_record/enum_override.rb +2 -2
- data/lib/sql_enum/version.rb +1 -1
- 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: 176bd7182d8d1c489c2789a7885e5a0a51764d47
|
4
|
+
data.tar.gz: cf001e95eecdf8eb28a31a1c6c48927be9934598
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98f126d163128547f52d491bf84ab78b72c0573e8722dc315366534743b522576e3f34dbad3957154e3dc1e81de01d5b1e927ebbfe068cb7175b0bb627e572ce
|
7
|
+
data.tar.gz: fb90f063ec354b3225cc0b7733bf39948fc4fab9af712cba2aa65abad13034c99c58b95f25034ac39ea9aafe83c5f20c84efdc342cef99173475f6098d470972
|
@@ -6,8 +6,8 @@ module ActiveRecord
|
|
6
6
|
enum_prefix = options.delete(:_prefix)
|
7
7
|
enum_suffix = options.delete(:_suffix)
|
8
8
|
|
9
|
-
enum_prefix ||= name if SqlEnum.configuration
|
10
|
-
enum_suffix ||= name if SqlEnum.configuration
|
9
|
+
enum_prefix ||= name if SqlEnum.configuration&.default_prefix
|
10
|
+
enum_suffix ||= name if SqlEnum.configuration&.default_suffix
|
11
11
|
|
12
12
|
klass = self
|
13
13
|
enum_values = Array.new
|
data/lib/sql_enum/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sql_enum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fletcher Fowler
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|