Sha256: 5b4d1232f8106879afe72e8f1a9237396e5a7e296f20c029309f99993b3ab2fd
Contents?: true
Size: 309 Bytes
Versions: 3
Compression:
Stored size: 309 Bytes
Contents
module RailsAdminDraft class Configuration def initialize(abstract_model) @abstract_model = abstract_model end def draft? draft.present? end protected def draft @has_draft ||= ::RailsAdmin::Config.model(@abstract_model.model).has_draft end end end
Version data entries
3 entries across 3 versions & 1 rubygems