activeadmin-poro-decorator 0.0.5 → 0.0.6
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.rb +1 -1
- data/lib/activeadmin-poro-decorator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2e73fd4d6a07dc0d7ff63764aa2b8cd1bb09bd3
|
4
|
+
data.tar.gz: 6d7bf59e448c139b4974d45319b97325bb3d99c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f53cbc08c0fbf72ae9fa01169630d0dfa2f73527ba3cd891aa7aa6564b708ff3e5da0f418fcdd8ea72232cf046d4701e787de5b6a10f61efc3f413ce503bc101
|
7
|
+
data.tar.gz: d7e2f3ed30e999c0c17ba28d46d61dc8300799a4069224840e72e963c49111e75cdd0e69fc2250fc5064076674184daae295db8a727e6153207044887f74832b
|
@@ -17,7 +17,7 @@ module ActiveadminPoroDecorator
|
|
17
17
|
def decorate(*args)
|
18
18
|
collection_or_object = args[0]
|
19
19
|
if collection_or_object.respond_to?(:to_ary)
|
20
|
-
class_name = collection_or_object.class.to_s.
|
20
|
+
class_name = collection_or_object.class.to_s.demodulize.gsub('ActiveRecord_Relation_', '')
|
21
21
|
DecoratedEnumerableProxy.new(collection_or_object, class_name)
|
22
22
|
else
|
23
23
|
new(collection_or_object)
|