activeadmin-poro-decorator 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/activeadmin-poro-decorator/version.rb +1 -1
- data/lib/activeadmin-poro-decorator.rb +2 -3
- 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: dbf2b9cb6ddf8c4563da945bd98b44a9733fdfc5
|
4
|
+
data.tar.gz: f664bafa7262b42fe64c99d73459592cf0b46428
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c6bfef4fc865f2a722abe91975b277e610ecfd6ba2bd5739f4cb4be78bbd548352c3fd65d5a6f1313566c1137c24bec9b35d6cb49a912f238971cd8791ced9b
|
7
|
+
data.tar.gz: cfe3d2c363c2afef5b4d21a3a64790f4f13e3fc00b782a0a20d54ceadd2f4f9581d9c0eb6a24e0fcfa162e1e8ff9556a59e52e4fd490fb3b2cba1341c0746cc5
|
@@ -1,9 +1,8 @@
|
|
1
1
|
require 'activeadmin-poro-decorator/version'
|
2
2
|
require 'activeadmin-poro-decorator/config'
|
3
|
+
require 'activeadmin-poro-decorator/railtie' if defined?(Rails)
|
3
4
|
|
4
5
|
module ActiveadminPoroDecorator
|
5
|
-
require 'activeadmin-poro-decorator/railtie' if defined?(Rails)
|
6
|
-
|
7
6
|
extend ActiveSupport::Concern
|
8
7
|
|
9
8
|
def helpers
|
@@ -18,7 +17,7 @@ module ActiveadminPoroDecorator
|
|
18
17
|
def decorate(*args)
|
19
18
|
collection_or_object = args[0]
|
20
19
|
if collection_or_object.respond_to?(:to_ary)
|
21
|
-
class_name = collection_or_object.class.to_s.
|
20
|
+
class_name = collection_or_object.class.to_s.deconstantize
|
22
21
|
DecoratedEnumerableProxy.new(collection_or_object, class_name)
|
23
22
|
else
|
24
23
|
new(collection_or_object)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin-poro-decorator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krivich Ekaterina
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|