Displaying 1 result from an estimated 1 matches for "get_my_model".
2006 Mar 17
2
Temporary Model Data
I am trying to optimize some methods in my model so they don''t repeat
CPU intensive algorithms every time I call the method in the same
request/response cycle.
Eg.
================
def invitations
all_pgm_updates.find_all do |update|
update.invited?
end
end
================
I want to do something like:
================
def invitations
if @invitations.nil?