Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source
Show
Ignore:
Timestamp:
12/10/07 05:54:46 (9 months ago)
Author:
bitsweat
Message:

Ruby 1.9 compat: File.exists\? -> File.exist\? en masse. References #1689 [Pratik Naik]

Files:

Legend:

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

    r8301 r8365  
    155155        status = interpret_status(status_code) 
    156156        path = "#{RAILS_ROOT}/public/#{status[0,3]}.html" 
    157         if File.exists?(path) 
     157        if File.exist?(path) 
    158158          render :file => path, :status => status 
    159159        else