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

2006-01-12 Thread Trevor Squires
On 12-Jan-06, at 2:56 AM, Stefan Kaes wrote: I suggest to place language information on the request object. Add an attr_accessor to class AbstractRequest class ActionController::AbstractRequest attr_accessor :language end My preference has always been to add an "attributes" method to the

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

2006-01-12 Thread Stefan Kaes
Jean-Christophe Michel wrote: Hi all, My problem is to try to call a method once per page request. (Context: I want to detect the current lang for localization, and this has to be done on each request, so lang passed through uri can have priority over session, browser prefs or default app lang).

[Rails-core] call a method once per page request,confirmed problem

2006-01-12 Thread Jean-Christophe Michel
Hi all, My problem is to try to call a method once per page request. (Context: I want to detect the current lang for localization, and this has to be done on each request, so lang passed through uri can have priority over session, browser prefs or default app lang). The way I followed is to have