simple_form_extension 1.4.17 → 1.4.18

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: '0880fda87e213f7de641ecfc0ca1a99537e4ca86'
4
- data.tar.gz: 19de2b75fef0391593d598dc10fddfdf44c126f1
3
+ metadata.gz: 93cd36ca721b1ef45750cd496e120b4de0213843
4
+ data.tar.gz: b148a00b9dd74be84423994f66ce08f828248794
5
5
  SHA512:
6
- metadata.gz: b9556a62fa16ae35cfb5e7ee041a40b3062414f77949051b4d467421c293a48d9bbeb364cf3de6a30cfea4bf448367ba99dee3f0453e231bc1221bd2c97a5e52
7
- data.tar.gz: '004581a2f91da9b365764f4423021bc445654413db2d1afeebfdc684ac27395c1ba1593c31eda8cb42c7e4497451f6fb9b97095d44cb09244a249677161c3b6b'
6
+ metadata.gz: 2c822388163ade7cbda89576e6349e28d063613d5b1b868df9158193302cd2ddcbaeb38deae33d8d6bbdc380d0e8ce1730c252230d7a8510080c4bc51e04f95f
7
+ data.tar.gz: 308a1c6b4c212da8e33820be2b6e830fca4273e029692ee14ad8cc18cd8cf691df51dfa58c65d0e579e81e4016868850fe89079c94909d3b917c59719155ab76
@@ -170,7 +170,8 @@ module SimpleFormExtension
170
170
  end
171
171
 
172
172
  def enum?
173
- object_class.defined_enums.key?(attribute_name.to_s)
173
+ object_class.respond_to?(:defined_enums) &&
174
+ object_class.defined_enums.key?(attribute_name.to_s)
174
175
  end
175
176
 
176
177
  def enum_options
@@ -1,3 +1,3 @@
1
1
  module SimpleFormExtension
2
- VERSION = "1.4.17"
2
+ VERSION = "1.4.18"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form_extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.17
4
+ version: 1.4.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glyph-fr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-12 00:00:00.000000000 Z
11
+ date: 2019-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails