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

Add the current namespace name as a body class #1032

Merged
merged 1 commit into from Feb 16, 2012

Conversation

mattvague
Copy link
Contributor

No description provided.

mattvague added a commit that referenced this pull request Feb 16, 2012
Add the current namespace name as a body class
@mattvague mattvague merged commit c6baabf into master Feb 16, 2012
@@ -17,6 +17,7 @@ def add_classes_to_body
@body.add_class(params[:action])
@body.add_class(params[:controller].gsub('/', '_'))
@body.add_class("logged_in")
@body.add_class(active_admin_namespace.name.to_s + "_namespace")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would that look better?
@body.add_class("#{active_admin_namespace.name}_namespace")

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.

None yet

2 participants