enum_help 0.0.13 → 0.0.14

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: 3550dec4d6b768d88a1cfebed57387514d9ff703
4
- data.tar.gz: 9a886f98131d944c37ecb15308f66eee5765480c
3
+ metadata.gz: 7af8f0949dd254a92a7bb439af880de5d05ad9f8
4
+ data.tar.gz: 15c71d3eb00bf6fa0a2aa400129b9ae4d2246388
5
5
  SHA512:
6
- metadata.gz: 2cbddb39d847931d90f405afbbd5b54ced2382854993a576e2528b59443e1a9c6824dcb14ceaea2c6b64a7aa53afc244aca66993f462ce011b50152fb3e9bcfb
7
- data.tar.gz: c1c59995884bcb8f65a43397f4e316e3c466725e8b7bcc832b4caa1c23b44efbbad68275af2a85d355a68f1eec0b84b450391b12669af9ef7af09d74e653d975
6
+ metadata.gz: f5e119aa5242b8a35451a4e4e7f37315be76fa413fd445d0d9dd8a8b22e82eac7199bbaefefc79619b0cfdcc66b65ef4ecf24773a33a8c135eb8585b747dd729
7
+ data.tar.gz: 0a6f6529c29db06ac3cb17a2627d95f7da3827c52e2b71ba0973158746d176db3726c380df5a3a4ffeb75fb7645a558ed9e3883f7f044a7818c115f816ac38f1
@@ -18,7 +18,9 @@ module EnumHelp
18
18
 
19
19
 
20
20
  def is_enum_attributes?( attribute_name )
21
- object.class.defined_enums.key?(attribute_name) && attribute_name.pluralize != "references"
21
+ object.class.respond_to?(:defined_enums) &&
22
+ object.class.defined_enums.key?(attribute_name) &&
23
+ attribute_name.pluralize != "references"
22
24
  end
23
25
 
24
26
 
@@ -1,3 +1,3 @@
1
1
  module EnumHelp
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enum_help
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lester Zhao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-03 00:00:00.000000000 Z
11
+ date: 2015-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler