Merge pull request #31641 from ckoenig/remove_frozen_string_literal
Use dup'ed options hash
This commit is contained in:
commit
9bf41f2495
@ -315,11 +315,13 @@ def gem_for_database
|
||||
|
||||
def convert_database_option_for_jruby
|
||||
if defined?(JRUBY_VERSION)
|
||||
case options[:database]
|
||||
when "postgresql" then options[:database].replace "jdbcpostgresql"
|
||||
when "mysql" then options[:database].replace "jdbcmysql"
|
||||
when "sqlite3" then options[:database].replace "jdbcsqlite3"
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user