jeremyevans / rodauth

Ruby's Most Advanced Authentication Framework
http://rodauth.jeremyevans.net
MIT License
1.67k stars 95 forks source link

Raise error when Sequel database is missing #289

Closed janko closed 1 year ago

janko commented 1 year ago

Currently, when a person requires Sequel but doesn't connect to the database, they get a NoMethodError because database_type is getting called on nil in #post_configure method. I thought it would be good to have a more explicit error message for people newer to Sequel.

jeremyevans commented 1 year ago

This makes sense to me, thanks for the patch! I'll merge this after I return from traveling.

jeremyevans commented 1 year ago

Cherry-picked at 0510740768e2b2defa343ea84463f6a8976a8aae