As you eluded to, this is not the best idea in the world, but maybe you could try using on of these approaches:
- An initializer that will get called each time the rails environment is loaded.
- Something in the
config.after_initialize
block. See http://guides.rubyonrails.org/configuring.html