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

Fix for Tag#dom_class_name_for #2

Merged
merged 1 commit into from
Jun 28, 2012
Merged

Fix for Tag#dom_class_name_for #2

merged 1 commit into from
Jun 28, 2012

Conversation

amiel
Copy link
Contributor

@amiel amiel commented Jun 27, 2012

In the less common case when a resource doesn't respond to #model_name
Tag#dom_class_name_for previously called #underscore on the class.

I've changed this to call #underscore on the class name as
#underscore is a standard (ActiveSupport) method on String but not
on Class.

In the less common case when a resource doesn't respond to `#model_name`
`Tag#dom_class_name_for` previously called `#underscore` on the class.

I've changed this to call `#underscore` on the class name as
`#underscore` is a standard (`ActiveSupport`) method on `String` but not
on `Class`.
@gregbell
Copy link
Contributor

Excellent. Nice find!

gregbell added a commit that referenced this pull request Jun 28, 2012
@gregbell gregbell merged commit 55cbb05 into activeadmin:master Jun 28, 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