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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbdc4298751fcb22bf9202ed9609243029a9afc0
4
- data.tar.gz: 46b77e14cff461533788f0e0be634332a6d13cb6
3
+ metadata.gz: 176bd7182d8d1c489c2789a7885e5a0a51764d47
4
+ data.tar.gz: cf001e95eecdf8eb28a31a1c6c48927be9934598
5
5
  SHA512:
6
- metadata.gz: 53ee10ec498793598c1a6cc5ca85e56ddee4cda19fe0efe61ef289d4e48061b072c24a4207eda7f164fd7d42a255b7c0da028bc4f25755348e18305d60617955
7
- data.tar.gz: cb9a81b374bef580ae1fa2321d7a1f6f763acf2bd5a704f5fbf0f5bfb80c774e6d79db1138c123ef8155e0780a1b087c34d6c0a6f484e115aae7eb3019c760f6
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.default_prefix
10
- enum_suffix ||= name if SqlEnum.configuration.default_suffix
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
@@ -1,3 +1,3 @@
1
1
  module SqlEnum
2
- VERSION = "0.1.15"
2
+ VERSION = "0.1.16"
3
3
  end
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.15
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-10 00:00:00.000000000 Z
11
+ date: 2018-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord