Where to put shared code?

Where should I put shared code in a rails project?
The shared code is neither controller nor view nor model. But putting
it in /lib would require server restart to reflect changes.
Any suggestions?