Changeset 716

Show
Ignore:
Timestamp:
02/01/08 15:02:08 (6 months ago)
Author:
mislav
Message:

fix SiteController#show_page? for Rails 2.0. It seems the catch-all route forwards the URL as an array, so compensated for that.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/rails2/app/controllers/site_controller.rb

    r422 r716  
    1313  def show_page 
    1414    response.headers.delete('Cache-Control') 
    15     url = params[:url].to_s 
     15     
     16    url = params[:url] 
     17    if Array === url 
     18      url = url.join('/') 
     19    else 
     20      url = url.to_s 
     21    end 
     22     
    1623    if (request.get? || request.head?) and live? and (@cache.response_cached?(url)) 
    1724      @cache.update_response(url, response, request)