Skip to content

Commit 8639895

Browse files
author
James McKinney
committed
site_title proc should be rendered on Devise login page
1 parent 9de7f44 commit 8639895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/active_admin/devise/sessions/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div id="login">
2-
<h2><%= title "#{active_admin_application.site_title} #{t('active_admin.devise.login.title')}" %></h2>
2+
<h2><%= title "#{render_or_call_method_or_proc_on(self, active_admin_application.site_title)} #{t('active_admin.devise.login.title')}" %></h2>
33

44
<% scope = Devise::Mapping.find_scope!(resource_name) %>
55
<%= active_admin_form_for(resource, :as => resource_name, :url => send(:"#{scope}_session_path"), :html => { :id => "session_new" }) do |f|

0 commit comments

Comments
 (0)