Sha256: 5671334a0e51bc8b3eb503da89392892dd4311db12f6c6577b8ec89a74173c49
Contents?: true
Size: 374 Bytes
Versions: 1
Compression:
Stored size: 374 Bytes
Contents
require "sequel/core" # initialize the appropriate Sequel adapter without creating a connection <%- if RUBY_ENGINE == "jruby" -%> DB = Sequel.connect("jdbc:<%= sequel_adapter %>://", test: false) <% else -%> DB = Sequel.<%= sequel_adapter %>(test: false) <% end -%> # have Sequel use ActiveRecord's connection for database interaction DB.extension :activerecord_connection
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rodauth-rails-0.2.1 | lib/generators/rodauth/templates/config/initializers/sequel.rb |