Are there any downsides to doing something like this assuming Foo data
class Foo < ActiveRecord::Base
class << self
@foo || Foo.find(:all)
Is it ok to cache this data so you don't constantly reload it from the
database. How long does @foo last? Just for the length of one request
or until the server is restarted?