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

Ticket #7955: quoted_environment.diff

File quoted_environment.diff, 1.0 kB (added by NickHowell, 1 year ago)

Just adds quotes around RAILS_ROOT in the IRB command.

  • /trunk/railties/lib/commands/console.rb

    old new  
    1010end 
    1111 
    1212libs =  " -r irb/completion" 
    13 libs << " -r #{RAILS_ROOT}/config/environment
     13libs << " -r \"#{RAILS_ROOT}/config/environment\"
    1414libs << " -r console_app" 
    1515libs << " -r console_sandbox" if options[:sandbox] 
    1616libs << " -r console_with_helpers"