Hi, Does anyone know of a good way of caching the constant variables in the model. I have constants in models whose values are based on finder methods.
eg) TYPE_UNIV = Decode.find_by_name("University") When i access this constant from Controllers or Views or Model, i see a query running in DB each time. -Pratik --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---