Persisting Controller Class Attributes

Hi, this is probably a silly question but I’ll ask it anyway becasuse
Ruby/Rails tends to have an answer for everything!

I have a controller that has a number of configuration parameters in
class variables that control its behaviour.

Currently changing these requires editing the code. I’d like to provide
a view that allows them to be changed but I then have the problem of
persisting them.

Yes, I know I can write an attributes model to store them in (and I
think this may be the correct way to do this), but…

Is there a way (perhaps a plugin, module or helper) that allows certain
class variables in a controller or other class to be persisted in the
database without having to go to the trouble of writing a model myself ?