jeremyevans / rodauth

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

Cache the configuration object in Rodauth::Auth #152

Closed janko closed 3 years ago

janko commented 3 years ago

As discussed in https://github.com/jeremyevans/rodauth/pull/151, this PR modifies Rodauth::Auth to cache the Configuration object, and reuse it for each .configure call. This behaviour provides more flexibility in some scenarios, and makes it easier for a library to extend Rodauth::Auth with improved inheritance behaviour.

jeremyevans commented 3 years ago

This looks good, thanks for working on this!

jeremyevans commented 3 years ago

Cherry-picked at 57dc0537ec24fa9303f90e926d2cff641a2a9efd .