Module: ActiveAdmin::Views::Pages::Show::DefaultMainContent

Included in:
ActiveAdmin::Views::Pages::Show
Defined in:
lib/active_admin/views/pages/show.rb

Instance Method Summary collapse

Instance Method Details

#default_attribute_table_rowsObject



50
51
52
# File 'lib/active_admin/views/pages/show.rb', line 50

def default_attribute_table_rows
  resource.class.columns.collect{|column| column.name.to_sym }
end

#default_main_content(&block) ⇒ Object



46
47
48
# File 'lib/active_admin/views/pages/show.rb', line 46

def default_main_content(&block)
  attributes_table(*default_attribute_table_rows, &block)
end