diff options
author | Arun Agrawal <arun@fromjaipur.com> | 2011-04-23 18:55:17 +0530 |
---|---|---|
committer | Arun Agrawal <arun@fromjaipur.com> | 2011-04-23 19:03:24 +0530 |
commit | b335533e16436d1a12f15a60f6436bdc7b967012 (patch) | |
tree | 461946eef3a34d919e789273aae1c1f18cfe4250 /railties/lib/rails/generators/app_base.rb | |
parent | 6cea2436d7bb8e62acc35d98d141f3bab7743dbc (diff) | |
download | rails-b335533e16436d1a12f15a60f6436bdc7b967012.tar.gz rails-b335533e16436d1a12f15a60f6436bdc7b967012.tar.bz2 rails-b335533e16436d1a12f15a60f6436bdc7b967012.zip |
jdbcsqlite3 support added into template. #jruby
Diffstat (limited to 'railties/lib/rails/generators/app_base.rb')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index ddfd5256fe..b240222c6e 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -9,7 +9,8 @@ require 'uri' module Rails module Generators class AppBase < Base - DATABASES = %w( mysql oracle postgresql sqlite3 frontbase ibm_db jdbcmysql ) + JDBC_DATABASES = %w( jdbcmysql jdbcsqlite3 ) + DATABASES = %w( mysql oracle postgresql sqlite3 frontbase ibm_db ) + JDBC_DATABASES JAVASCRIPTS = %w( jquery prototype ) attr_accessor :rails_template @@ -163,6 +164,7 @@ module Rails when "frontbase" then "ruby-frontbase" when "mysql" then "mysql2" when "jdbcmysql" then "activerecord-jdbcmysql-adapter" + when "jdbcsqlite3" then "activerecord-jdbcsqlite3-adapter" else options[:database] end end |