activeadmin-poro-decorator 0.0.8 → 0.0.9

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: 0cab839a35f621934c35d5cc4c83d0026bd5051e
4
- data.tar.gz: bec39e01c4023a4a1e6aab8c366ee18e045a31c7
3
+ metadata.gz: 2221401621c7c777cc695cc28ae8f8b17deb5b1e
4
+ data.tar.gz: 10aadefde8b7cd4d13efdc9268632b1d76258bc5
5
5
  SHA512:
6
- metadata.gz: 8fbc2eb54dd8e28ab79d0a64b70853adbd1777ca158d8389774ec466514cd7f39ffa8c699b5493a4b35286b7925e2526de51f80c810ab21950a00e622b7376d4
7
- data.tar.gz: dd2870915a74aa0506c4ea2ad09850644ca5a4b9175dfc07608c2c32b91dfd07cc19dbc4b7b8b8ce28b872c403bd1b45437561211264fba74e31a9a050e791b5
6
+ metadata.gz: cd92720f35479a79e5eebb9ab107d5c06372def7d12e6bbff2f8d30216aaaa1c806e95f51c772af78073630d1dac3ed520b1b8075a020a665f3c3e12b2824fe3
7
+ data.tar.gz: 911bf92bd5bbf9b8bf1975afb164ac25b54f81677cc77b37d7eaabefc7bf979b9ba7bc974ded87f9ec13a0b60926f706c7abd56fb9070246d4228d4fea130d73
@@ -7,7 +7,8 @@ module ActiveAdmin
7
7
  class Comment < ActiveRecord::Base
8
8
  # @returns [String] The name of the record to use for the polymorphic relationship
9
9
  def self.resource_type(resource)
10
- resource.type
10
+ return resource.type if resource.respond_to?(:type)
11
+ ResourceController::Decorators.undecorate(resource).class.name.to_s
11
12
  end
12
13
  end
13
14
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveadminPoroDecorator
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
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.8
4
+ version: 0.0.9
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-10 00:00:00.000000000 Z
11
+ date: 2014-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler