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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61b34aa1c2516ebd2bf56e02247002ef7907a0fc
4
- data.tar.gz: e4636a9b749f8ba8790f73f9c8ac1326133d4b8a
3
+ metadata.gz: dbf2b9cb6ddf8c4563da945bd98b44a9733fdfc5
4
+ data.tar.gz: f664bafa7262b42fe64c99d73459592cf0b46428
5
5
  SHA512:
6
- metadata.gz: ce9cd05eca0459d25431faf4ed5b4da58af6951545e383ef07fc1546d5fc7f043311b6db3fcd5393028ae3eb22b806d30da6e3be42d393a8b364f55028478914
7
- data.tar.gz: 3ca2e1f4e9d61a74b9a89945b783ca9276d62fdaac89afaf46c6b3f97829d2ac02ac64afdfee8edbc4601ba3bac620e6259939044377a60912248718c0093585
6
+ metadata.gz: 2c6bfef4fc865f2a722abe91975b277e610ecfd6ba2bd5739f4cb4be78bbd548352c3fd65d5a6f1313566c1137c24bec9b35d6cb49a912f238971cd8791ced9b
7
+ data.tar.gz: cfe3d2c363c2afef5b4d21a3a64790f4f13e3fc00b782a0a20d54ceadd2f4f9581d9c0eb6a24e0fcfa162e1e8ff9556a59e52e4fd490fb3b2cba1341c0746cc5
@@ -1,3 +1,3 @@
1
1
  module ActiveadminPoroDecorator
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -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.demodulize.gsub('ActiveRecord_Relation_', '')
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
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-08 00:00:00.000000000 Z
11
+ date: 2014-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler