Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Update templates/rails/database.yml.rb #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mitfik
Copy link

@mitfik mitfik commented Oct 8, 2012

Batter way to get application name.
The old one cause error message on r3.2.8

Batter way to get application name.
The old one cause error message on r3.2.8
@dkubb
Copy link
Member

dkubb commented Oct 11, 2012

What about Rails.application.class.parent_name.underscore ?

@mitfik
Copy link
Author

mitfik commented Oct 11, 2012

I agree, underscore is much better.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants