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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dbf2b9cb6ddf8c4563da945bd98b44a9733fdfc5
4
- data.tar.gz: f664bafa7262b42fe64c99d73459592cf0b46428
3
+ metadata.gz: c2e73fd4d6a07dc0d7ff63764aa2b8cd1bb09bd3
4
+ data.tar.gz: 6d7bf59e448c139b4974d45319b97325bb3d99c8
5
5
  SHA512:
6
- metadata.gz: 2c6bfef4fc865f2a722abe91975b277e610ecfd6ba2bd5739f4cb4be78bbd548352c3fd65d5a6f1313566c1137c24bec9b35d6cb49a912f238971cd8791ced9b
7
- data.tar.gz: cfe3d2c363c2afef5b4d21a3a64790f4f13e3fc00b782a0a20d54ceadd2f4f9581d9c0eb6a24e0fcfa162e1e8ff9556a59e52e4fd490fb3b2cba1341c0746cc5
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.deconstantize
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)
@@ -1,3 +1,3 @@
1
1
  module ActiveadminPoroDecorator
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-poro-decorator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krivich Ekaterina