Sha256: 82875295c050e82dc2be9087953c7c0273f17d9ecaaa13789578d4e939807148
Contents?: true
Size: 686 Bytes
Versions: 2
Compression:
Stored size: 686 Bytes
Contents
# Tmporarily provide backward compatibility if # this method is invoked within page presenter 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 div id: "main_content" do if page_presenter.block # Eval the show config from the controller instance_exec resource, &page_presenter.block else render partial: 'show' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-rails-1.7.1 | app/views/active_admin/resource/show.html.arb |
activeadmin-rails-1.7.0 | app/views/active_admin/resource/show.html.arb |