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

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

Open
mitfik wants to merge 2 commits into
datamapper:masterfrom
mitfik:patch-1
Open

Update templates/rails/database.yml.rb#41
mitfik wants to merge 2 commits into
datamapper:masterfrom
mitfik:patch-1

Conversation

@mitfik

@mitfik mitfik commented Oct 8, 2012

Copy link
Copy Markdown

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

dkubb commented Oct 11, 2012

Copy link
Copy Markdown
Member

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

@mitfik

mitfik commented Oct 11, 2012

Copy link
Copy Markdown
Author

I agree, underscore is much better.

注册 for free to subscribe to this conversation on GitHub. Already have an account? 登录.

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

2 participants