How to load a static collection of rows?

I have a model UserType that I reference in my application allot.

This is stored in the database, but I don’t want to hit the db everytime
I
reference the collection of UserTypes (it doesn’t change unless I am
re-deploying the code or db so it is safe to make static).

How can I load all the rows into a collection that I can then use in my
application code as if it were a static collection?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs