Skip to content

Commit 9de7f44

Browse files
committed
Merge pull request activeadmin#1445 from jpmckinney/call_proc_on_site_title
site_title proc should be rendered in HTML title tag
2 parents ddd52dc + 4c2f0f9 commit 9de7f44

File tree

1 file changed

+1
-1
lines changed
  • lib/active_admin/views/pages

1 file changed

+1
-1
lines changed

lib/active_admin/views/pages/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def add_classes_to_body
2222

2323
def build_active_admin_head
2424
within @head do
25-
insert_tag Arbre::HTML::Title, [title, active_admin_application.site_title].join(" | ")
25+
insert_tag Arbre::HTML::Title, [title, render_or_call_method_or_proc_on(self, active_admin_application.site_title)].join(" | ")
2626
active_admin_application.stylesheets.each do |style|
2727
text_node(stylesheet_link_tag(style.path, style.options).html_safe)
2828
end

0 commit comments

Comments
 (0)