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
A note on condition block and deferred routes.
Tue May 13 11:34:51 -0700 2008
commit  137889807100ed854a43e663ae2ea33fb2eea6ce
tree    06ca2a8bf6da47309d6928edf2ff5a14ab9cce65
parent  ff19a1ab25844042f02db0f769c9481810cc1357
...
88
89
90
 
 
 
 
 
91
92
93
...
88
89
90
91
92
93
94
95
96
97
98
0
@@ -88,6 +88,11 @@ module Merb
0
     # found in incoming request. This is very useful to allow certain
0
     # URLs to be used by rich media applications and other kinds
0
     # of clients that have no other way of passing session identifier.
0
+ #
0
+ # ==== Conditional block.
0
+ # Conditional block is anonymous function that is evaluated
0
+ # when deferred routes are processed. Unless route is deferred,
0
+ # it has no condition block.
0
     class Route
0
       attr_reader :conditions, :conditional_block
0
       attr_reader :params, :behavior, :segments, :index, :symbol

Comments

    No one has commented yet.