app/views/active_admin/resource/show.html.arb in activeadmin-3.2.5 vs app/views/active_admin/resource/show.html.arb in activeadmin-4.0.0.beta1
- old
+ new
@@ -1,2 +1,13 @@
# frozen_string_literal: true
-insert_tag renderer_for(:show)
+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