jeremyevans / rodauth

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

Set configuration name to internal request classes #265

Closed janko closed 1 year ago

janko commented 1 year ago

Since the @configuration_name instance variable is the only one not automatically inherited on subclassing, it got lost on the internal request class, which can break user code that rely on it being set. For example, I had code that would save an account type to the database based on the configuration name, but it didn't work correctly when creating the account via an internal request. This PR should fix the issue.

janko commented 1 year ago

Addressed the feedback 👍🏻

jeremyevans commented 1 year ago

Cherry-picked at 87d5533a058c8cf3f5672331b4006dae92fec4b7