public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Search Repo:
Make controller.route work
ivey (author)
Sat Mar 22 15:32:32 -0700 2008
commit  575f80ac6497ea09c5488656ec5f34e216ba0391
tree    6c3c13f21d124c4797e2c80db6c6050076480fd0
parent  8cd7aae5b2d8385eeff04b99bb40b29bb87cdb65
...
12
13
14
 
 
15
16
17
...
204
205
206
207
208
209
210
211
...
12
13
14
15
16
17
18
19
...
206
207
208
 
 
 
 
209
0
@@ -12,6 +12,8 @@
0
   
0
   include Merb::ResponderMixin
0
   include Merb::ControllerMixin
0
+
0
+ attr_accessor :route
0
   
0
   class << self
0
     
0
@@ -204,9 +206,5 @@
0
   # ==== Returns
0
   # Hash:: The session that was extracted from the request object.
0
   def session() request.session end
0
-
0
- # ==== Returns
0
- # Hash:: The route that was extracted from the request object.
0
- def route() request.route end
0
 end
...
65
66
67
 
68
69
70
...
65
66
67
68
69
70
71
0
@@ -65,6 +65,7 @@
0
 
0
       controller = dispatch_action(klass, action, request)
0
       controller._benchmarks[:dispatch_time] = Time.now - start
0
+ controller.route = Merb::Router.routes[route_index]
0
       Merb.logger.info controller._benchmarks.inspect
0
       Merb.logger.flush
0
 

Comments

    No one has commented yet.