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

- (Object) default_attribute_table_rows



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

- (Object) default_main_content



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

def default_main_content
  attributes_table *default_attribute_table_rows
end