instance method
convert_database_option_for_jruby
Ruby on Rails 3.2.22.5
Since v3.1.12 Last seen in v3.2.22.5Available in: v3.1.12 v3.2.22.5
Signature
convert_database_option_for_jruby()
No documentation comment.
Source
# 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
Defined in railties/lib/rails/generators/app_base.rb line 176
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::AppBase