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 +4 -4
- data/lib/activeadmin_addons/addons/enum_tag.rb +5 -1
- data/lib/activeadmin_addons/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: 266e252b9691d15da42bdd24651202a25532ffc1
|
4
|
+
data.tar.gz: b57b60e9c1fdc78c7ddcade16f060be3ef952395
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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.
|
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-
|
14
|
+
date: 2016-05-20 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: railties
|