Sha256: d6d6f7d294c1e10569adda4968270deff9104de8f39a7cdc5c05f1d10184f1b7
Contents?: true
Size: 990 Bytes
Versions: 12
Compression:
Stored size: 990 Bytes
Contents
ActiveAdmin.register Ecm::Cms::ContentBox do permit_params(:name) if Rails.version >= '4.0.0' menu parent: proc { I18n.t('ecm.cms.active_admin.menu') }.call index do selectable_column column :name column :created_at column :updated_at ActiveAdmin::VERSION[0] < '1' ? default_actions : actions end show do panel Ecm::Cms::ContentBox.human_attribute_name(:ecm_cms_page_content_blocks) do table_for ecm_cms_content_box.ecm_cms_page_content_blocks, i18n: Ecm::Cms::Page::ContentBlock do |_content_block| column :ecm_cms_page column :body column :created_at column :updated_at end end end sidebar Ecm::Cms::ContentBox.human_attribute_name(:details), only: :show do attributes_table_for ecm_cms_content_box do row :name row :created_at row :updated_at row :ecm_cms_page_content_blocks_count end end # sidebar end if Gem::Specification.find_all_by_name('activeadmin').any?
Version data entries
12 entries across 12 versions & 1 rubygems