Changeset 926

Show
Ignore:
Timestamp:
12/27/07 16:17:42 (8 months ago)
Author:
filipe
Message:

eval in ruby1.9 do not accept proc objects anymore, so now we call proc {self}.binding . The behavior is the same as before (because in ruby1.8 this was kind of called inside eval anyway), but we have the benefit of run in 1.8 and 1.9.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/mongrel/configurator.rb

    r918 r926  
    349349    # binding so they can put their own Configurator statements. 
    350350    def run_config(script) 
    351       open(script) {|f| eval(f.read, proc {self}) } 
     351      open(script) {|f| eval(f.read, proc {self}.binding) } 
    352352    end 
    353353