Changeset 4700
- Timestamp:
- 08/07/06 06:13:01 (2 years ago)
- Files:
-
- trunk/actionpack/lib/action_controller/routing.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/routing.rb
r4677 r4700 139 139 # Nest the body inside of a def block, and then compile it. 140 140 raw_method = method_decl = "def generate_raw(#{args})\npath = begin\n#{body}\nend\n[path, hash]\nend" 141 # puts "\n======================"142 # puts143 # p self144 # puts145 # puts method_decl146 # puts147 141 instance_eval method_decl, "generated code (#{__FILE__}:#{__LINE__})" 148 142 … … 194 188 # Build the method declaration and compile it 195 189 method_decl = "def recognize(path, env={})\n#{body}\nend" 196 # puts "\n======================"197 # puts198 # p self199 # puts200 # puts method_decl201 # puts202 190 instance_eval method_decl, "generated code (#{__FILE__}:#{__LINE__})" 203 191 method_decl