Sha256: 890d833a315aa976029b5e12c7b54033382adc0a4c342516ab341b4a90ac8e27
Contents?: true
Size: 329 Bytes
Versions: 1
Compression:
Stored size: 329 Bytes
Contents
module ActiveAdmin class Comment < ActiveRecord::Base # @returns [String] The name of the record to use for the polymorphic relationship def self.resource_type(resource) return resource.type if resource.respond_to?(:type) ResourceController::Decorators.undecorate(resource).class.name.to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-poro-decorator-0.1.0 | lib/activeadmin-poro-decorator/activeadmin_comment.rb |