method
convert_database_option_for_jruby
rails latest stable - Class:
Rails::Generators::AppBase
convert_database_option_for_jruby()private
No documentation available.
# File railties/lib/rails/generators/app_base.rb, line 316
def convert_database_option_for_jruby
if defined?(JRUBY_VERSION)
opt = options.dup
case opt[:database]
when "postgresql" then opt[:database] = "jdbcpostgresql"
when "mysql" then opt[:database] = "jdbcmysql"
when "sqlite3" then opt[:database] = "jdbcsqlite3"
end
self.options = opt.freeze
end
end