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 +4 -4
- data/lib/activeadmin-poro-decorator.rb +2 -1
- data/lib/activeadmin-poro-decorator/version.rb +1 -1
- 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: 2221401621c7c777cc695cc28ae8f8b17deb5b1e
|
4
|
+
data.tar.gz: 10aadefde8b7cd4d13efdc9268632b1d76258bc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.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-
|
11
|
+
date: 2014-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|