class ActiveAdmin::Views::Pages::Show

def attributes_table(*args, &block)

def attributes_table(*args, &block)
  opts = args.extract_options!
  table_title = if opts.has_key?(:title)
                  render_or_call_method_or_proc_on(resource, opts[:title])
                else
                  ActiveAdmin::Localizers.resource(active_admin_config).t(:details)
                end
  panel(table_title) do
    attributes_table_for resource, *args, &block
  end
end

def config

def config
  active_admin_config.get_page_presenter(:show) || super
end

def default_title

def default_title
  display_name(resource)
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
  if config[:title]
    render_or_call_method_or_proc_on(resource, config[:title])
  else
    assigns[:page_title] || default_title
  end
end