class ActiveAdmin::Views::Pages::Show

def attributes_table(*args, &block)

def attributes_table(*args, &block)
  panel(I18n.t('active_admin.details', :model => active_admin_config.resource_name)) do
    attributes_table_for resource, *args, &block
  end
end

def config

def config
  active_admin_config.get_page_presenter(:show) || ::ActiveAdmin::PagePresenter.new
end

def default_title

def default_title
  "#{active_admin_config.resource_name} ##{resource.id}"
end

def main_content

def main_content
  if config.block
    # Eval the show config from the controller
    instance_exec resource, &config.block
  else
    default_main_content
  end
end

def title

def title
  case config[:title]
  when Symbol, Proc
    call_method_or_proc_on(resource, config[:title])
  when String
    config[:title]
  else
    default_title
  end
end