Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4700

Show
Ignore:
Timestamp:
08/07/06 06:13:01 (2 years ago)
Author:
ulysses
Message:

it's me, john wayne

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/routing.rb

    r4677 r4700  
    139139        # Nest the body inside of a def block, and then compile it. 
    140140        raw_method = method_decl = "def generate_raw(#{args})\npath = begin\n#{body}\nend\n[path, hash]\nend" 
    141 # puts "\n======================" 
    142 # puts 
    143 # p self 
    144 # puts 
    145 # puts method_decl 
    146 # puts 
    147141        instance_eval method_decl, "generated code (#{__FILE__}:#{__LINE__})" 
    148142 
     
    194188        # Build the method declaration and compile it 
    195189        method_decl = "def recognize(path, env={})\n#{body}\nend" 
    196 # puts "\n======================" 
    197 # puts 
    198 # p self 
    199 # puts 
    200 # puts method_decl 
    201 # puts 
    202190        instance_eval method_decl, "generated code (#{__FILE__}:#{__LINE__})" 
    203191        method_decl