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_rows ⇒ Object
47 48 49 |
# File 'lib/active_admin/views/pages/show.rb', line 47 def default_attribute_table_rows resource.class.columns.collect{|column| column.name.to_sym } end |
#default_main_content ⇒ Object
43 44 45 |
# File 'lib/active_admin/views/pages/show.rb', line 43 def default_main_content attributes_table *default_attribute_table_rows end |