Sha256: 8ad75aa4ac6b83d0cd1bee12292cdc5c9c5fbdd4639bebdf8080c23f30afea19
Contents?: true
Size: 571 Bytes
Versions: 3
Compression:
Stored size: 571 Bytes
Contents
module RailsAdminComments class Configuration def initialize(abstract_model) @abstract_model = abstract_model end def options # @options ||= { # fields: [{}], # thumbnail_fields: [:image, :cover], # label_methods: [:name, :label], # hint_fields: [], # thumbnail_size: :thumb, # thumbnail_gem: :paperclip, # }.merge(config || {}) @options ||= {} end protected def config ::RailsAdmin::Config.model(@abstract_model.model).comments || {} end end end
Version data entries
3 entries across 3 versions & 1 rubygems