instance method
convert_database_option_for_jruby
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20Signature
convert_database_option_for_jruby()
No documentation comment.
Source
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 415
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
Defined in railties/lib/rails/generators/rails/app/app_generator.rb line 415
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::AppGenerator