public
Description: A Ruby web application framework
Homepage: http://www.mackframework.com
Clone URL: git://github.com/markbates/mack.git
Click here to lend your support to: mack and make a donation at www.pledgie.com !
Fixed: Controller's don't have control over there initialize methods [#36 
state:resolved]
markbates (author)
Fri Jul 18 14:17:20 -0700 2008
commit  1cf308c8f1c572dba13fd83deb8a738744423565
tree    606cbd024042954a6028e153e4e96cedc4f54dee
parent  32698109ea378a4b826325f176ccdb4f166e1ed9
...
25
26
27
28
 
29
30
31
...
25
26
27
 
28
29
30
31
0
@@ -25,7 +25,7 @@ module Mack
0
     # If an exception was thrown by a request this represents that error.
0
     attr_accessor :caught_exception
0
 
0
-    def initialize(request, response, cookies)
0
+    def configure_controller(request, response, cookies)
0
       @request = request
0
       @response = response
0
       @render_options = {}
...
67
68
69
70
 
 
71
72
73
...
67
68
69
 
70
71
72
73
74
0
@@ -67,7 +67,8 @@ module Mack
0
       self.request.instance_variable_set("@params_controller", nil)
0
       self.request.instance_variable_set("@params_action", nil)
0
       
0
-      c = cont.new(self.request, self.response, self.cookies)
0
+      c = cont.new
0
+      c.configure_controller(self.request, self.response, self.cookies)
0
       c.caught_exception = e unless e.nil?
0
 
0
       self.response.controller = c

Comments