Sha256: 8d2cf376deb3d81e6e6de4a0f022a0647dbe8dd6e6caf7761beaaa18c283c9b7
Contents?: true
Size: 613 Bytes
Versions: 2
Compression:
Stored size: 613 Bytes
Contents
module Hancock module Admin module EmbeddedElement def self.config(nav_label = nil, fields = {}) if nav_label.is_a?(Hash) nav_label, fields = nil, nav_label end Proc.new { navigation_label(nav_label || I18n.t('hancock.cms')) field :enabled, :toggle do searchable false end field :name, :string do searchable true end Hancock::RailsAdminGroupPatch::hancock_cms_group(self, fields) if block_given? yield self end } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hancock_cms-2.0.0 | lib/hancock/admin/embedded_element.rb |
hancock_cms-1.0.0 | lib/hancock/admin/embedded_element.rb |