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

Commit

Permalink
* allow to use this template with jruby with newer rails versions as …
Browse files Browse the repository at this point in the history
…well

* since 'bundle install' runs at the end of the rails template then it install the rails version with which the application got generated
  • Loading branch information
mkristian authored and dkubb committed Apr 1, 2012
1 parent 8c99f33 commit 2bb098f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/rails/database.yml.rb
@@ -1,7 +1,7 @@
# TODO think about a better way
db_name = app_path.split('/').last

database = options[:database]
database = options[:database].sub(/jdbc/, '')
database = 'postgres' if database == 'postgresql'
database = 'sqlite' if database == 'sqlite3'

Expand Down
2 changes: 1 addition & 1 deletion templates/rails/gemfile.rb
Expand Up @@ -3,7 +3,7 @@
DATAMAPPER = '#{DATAMAPPER}'
RSPEC = '#{RSPEC}'

database = options[:database]
database = options[:database].sub(/jdbc/, '')
database = 'postgres' if database == 'postgresql'
database = 'sqlite' if database == 'sqlite3'

Expand Down

0 comments on commit 2bb098f

Please sign in to comment.