fractaledmind / solid_errors

database-backed, app-internal exception tracker for Rails applications
MIT License
332 stars 17 forks source link

Introduce base_controller_class config option #67

Open ron-shinall opened 1 month ago

ron-shinall commented 1 month ago

Motivation:

It would be nice to use a specific controller from my application as the Solid Errors base controller, the same way that Mission Control Jobs does. For example, if MyAdminController handles all of my authentication, it would be nice to simply tell Solid Errors to inherit from that controller.

Details:

This PR adds a new base_controller_class config option to accomplish this.

Please let me know if this is something you'd be willing to add, and if there any other aspects you'd like me to include or change.

And thank you for Solid Errors! Today I upgraded our production app to use Solid Errors ✌🏼

ron-shinall commented 1 month ago

Excellent! In particular I wasn't sure if you'd prefer a method for reading this value, so let me know if you'd want that change.

ron-shinall commented 1 month ago

@fractaledmind are there any changes you'd like me to make on this?