Sha256: e8183969604d525906d0a885595600cf870c47f87c4f3e9689577419162bab3e
Contents?: true
Size: 471 Bytes
Versions: 2
Compression:
Stored size: 471 Bytes
Contents
module RailsAdminSortEmbedded class Configuration def initialize(abstract_model) @abstract_model = abstract_model end def options @options ||= { fields: [], thumbnail_fields: [:image, :cover], thumbnail_size: :thumb, thumbnail_gem: :paperclip, }.merge(config || {}) end protected def config ::RailsAdmin::Config.model(@abstract_model.model).sort_embedded || {} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_admin_sort_embedded-0.0.3 | lib/rails_admin_sort_embedded/configuration.rb |
rails_admin_sort_embedded-0.0.2 | lib/rails_admin_sort_embedded/configuration.rb |