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?

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
postedFeb 13, '12 at 3:29a
activeFeb 13, '12 at 3:29a

1 user in discussion

S Ahmed: 1 post



site design / logo © 2022 Grokbase