Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

site_title accepts String, Symbol or Proc #1033

Merged
merged 5 commits into from
Feb 18, 2012
Merged

Conversation

pcreux
Copy link
Contributor

@pcreux pcreux commented Feb 17, 2012

You can now do:

ActiveAdmin.application.site_title = proc { "Hello #{controller.current_admin_user.email}" }

or

ActiveAdmin.application.site_title = proc { controller.current_client.name }

This could be applied to all the other configuration item that only accepts strings for now.

Anyone for a better name than render_or_call_method_or_proc?

@ghost ghost assigned gregbell Feb 17, 2012
gregbell added a commit that referenced this pull request Feb 18, 2012
site_title accepts String, Symbol or Proc
@gregbell gregbell merged commit b0a85a3 into master Feb 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants