Re: [Rails-core] Help needed from eager loading enthusiasts

2006-02-21 Thread Charles M. Gerungan
On 21-feb-2006, at 19:46, Michael Koziarski wrote: http://dev.rubyonrails.org/ticket/3913 Ah, that's AnnaChan's (irc nick) patch. I will most definitely test this! -- Regards, Charles. ___ Rails-core mailing list Rails-core@lists.rubyonrails.or

Re: [Rails-core] call a method once per page request

2006-01-02 Thread Charles M. Gerungan
On 2-jan-2006, at 10:48, Jean-Christophe Michel wrote: def my_method return true if @@my_method_called @@my_method_called = true # do something end Sure it would work. Is it a good practice to use a global for such a problem ? @@class_var. -- Regards, Charles. __