method
convert_database_option_for_jruby
v3.2.13 -
Show latest stable
- Class:
Rails::Generators::AppBase
convert_database_option_for_jruby()protected
No documentation available.
# File railties/lib/rails/generators/app_base.rb, line 176
def convert_database_option_for_jruby
if defined?(JRUBY_VERSION)
case options[:database]
when "oracle" then options[:database].replace "jdbc"
when "postgresql" then options[:database].replace "jdbcpostgresql"
when "mysql" then options[:database].replace "jdbcmysql"
when "sqlite3" then options[:database].replace "jdbcsqlite3"
end
end
end