lib/active_admin/views/pages/form.rb in activeadmin-1.0.0.pre2 vs lib/active_admin/views/pages/form.rb in activeadmin-1.0.0.pre3

- old
+ new

@@ -3,11 +3,15 @@ module Pages class Form < Base def title - assigns[:page_title] || I18n.t("active_admin.#{normalized_action}_model", - model: active_admin_config.resource_label) + if form_presenter[:title] + render_or_call_method_or_proc_on(resource, form_presenter[:title]) + else + assigns[:page_title] || I18n.t("active_admin.#{normalized_action}_model", + model: active_admin_config.resource_label) + end end def form_presenter active_admin_config.get_page_presenter(:form) || default_form_config end