gregbell/active_admin

View on GitHub
app/views/active_admin/resource/show.html.arb

Summary

Maintainability
Test Coverage
# frozen_string_literal: true
def attributes_table(*args, &block)
  attributes_table_for resource, *args, &block
end

div class: "main-content-container" do
  if page_presenter.block
    # Evaluate the show config from the controller
    instance_exec resource, &page_presenter.block
  else
    render "show_default"
  end
end