On Monday 16 February 2009 02:29:56 MarkMT wrote: > Is that correct? I had seen that, but I'm still puzzled about how the > 'Merb::Request.new(env)' object that is created here is subsequently > accessed as 'request' from within the controller (e.g. in the > 'session' method of Merb:SessionMixin).
Line 261 (merb 1.0.8.1) of merb-core/controller/merb_controller.rb is: attr_reader :request, :headers That is where the 'request' method is being defined. It gets set in the 'initialize' method. It is passed to the controller in merb-core/dispatch/dispatcher.rb is the 'dispatch_action' method of 'Request' I hope that helps. Derek --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
