lib/generators/cambium/install/config_generator.rb in cambium-0.2.0 vs lib/generators/cambium/install/config_generator.rb in cambium-0.2.1
- old
+ new
@@ -29,12 +29,12 @@
f.each_line do |line|
# Database
if line.include?("'mysql2'")
@config[:db][:adapter] = "mysql2"
elsif line.include?("'pg'")
- @config[:db][:adapter] = "sqlite3"
- elsif line.include?("'sqlite3'")
@config[:db][:adapter] = "pg"
+ elsif line.include?("'sqlite3'")
+ @config[:db][:adapter] = "sqlite3"
end
# Rails Version
if line.match(/gem\ \'rails\'/)
@config[:app][:version] = line.gsub(/gem\ \'rails\'\,/, '').gsub(/\'/, '').strip
end