lib/generators/rodauth/templates/config/initializers/sequel.rb in rodauth-rails-0.1.3 vs lib/generators/rodauth/templates/config/initializers/sequel.rb in rodauth-rails-0.2.0

- old
+ new

@@ -1,13 +1,6 @@ require "sequel/core" # initialize the appropriate Sequel adapter without creating a connection -<% case adapter -%> -<% when "postgresql" -%> -DB = Sequel.postgres(test: false) -<% when "mysql2" -%> -DB = Sequel.mysql2(test: false) -<% when "sqlite3" -%> -DB = Sequel.sqlite(test: false) -<% end -%> +DB = Sequel.<%= sequel_adapter %>(test: false) # have Sequel use ActiveRecord's connection for database interaction DB.extension :activerecord_connection