activeadmin_addons 0.9.0 → 0.9.1

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: 339767451d690dce0857728e0b000055c3d20a3e
4
- data.tar.gz: 33a38a21e81194a21ba00d9ab5d0d4d148dcec37
3
+ metadata.gz: 266e252b9691d15da42bdd24651202a25532ffc1
4
+ data.tar.gz: b57b60e9c1fdc78c7ddcade16f060be3ef952395
5
5
  SHA512:
6
- metadata.gz: 4f5b389bc1614ba65c83aa4393541981fd6b8731b8b45f629b5491515c89ec34a9ab723c21a8d883c9ce5d5d7a9d0048c3770f806c09cf0d5c6f76dbc241bdf2
7
- data.tar.gz: 2a8036767416393893109731f0062ef18039585cafff10c2c4e0556f2cec35ffc4076b1a9d059db6ae71b266cc7f9fe410d42b3aeb3371254e01991173ba56d8
6
+ metadata.gz: 8202ba4038fb0d3844ae27501b51dcd22358a6ce5283c9789e72a40a77fde38a11aec58c86e866e26557d45f85121387f9e2b1c398d3c319187bd50f00824d6d
7
+ data.tar.gz: ca42f0090298f4703a885ff8bbcf1aacc46bc93447fcd32cc1b41db1cfb85cc0821e3cd2d50949fbdc0726e605f8dc0bca8f37478ef7f4af6db6727568ff4e16
@@ -2,7 +2,11 @@ module ActiveAdminAddons
2
2
  class EnumBuilder < CustomBuilder
3
3
  def render
4
4
  @is_enum = false
5
- @is_enum = :enumerize if data.is_a?('Enumerize::Value'.constantize)
5
+ begin
6
+ @is_enum = :enumerize if data.is_a?('Enumerize::Value'.constantize)
7
+ rescue NameError
8
+ # ignore if Enumerize is not defined
9
+ end
6
10
  if defined? Rails && Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 1
7
11
  @is_enum = :enum if model.defined_enums[attribute.to_s]
8
12
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveadminAddons
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_addons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platanus
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-04-27 00:00:00.000000000 Z
14
+ date: 2016-05-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties