Rails 2.3.1

Update to the release version of Rails 2.3.1.
This commit is contained in:
Jacques Distler 2009-03-05 07:54:17 -06:00
parent bd9fa0ed0c
commit 5e7d2cf973
25 changed files with 199 additions and 26 deletions

View file

@ -1101,7 +1101,6 @@ module ActionController #:nodoc:
end
response.redirected_to = options
logger.info("Redirected to #{options}") if logger && logger.info?
case options
# The scheme name consist of a letter followed by any combination of
@ -1124,6 +1123,7 @@ module ActionController #:nodoc:
def redirect_to_full_url(url, status)
raise DoubleRenderError if performed?
logger.info("Redirected to #{url}") if logger && logger.info?
response.redirect(url, interpret_status(status))
@performed_redirect = true
end

View file

@ -317,18 +317,22 @@ module ActionController
end
def regexp_chunk
'(\.[^/?\.]+)?'
'/|(\.[^/?\.]+)?'
end
def to_s
'(.:format)?'
end
def extract_value
"#{local_name} = options[:#{key}] && options[:#{key}].to_s.downcase"
end
#the value should not include the period (.)
def match_extraction(next_capture)
%[
if (m = match[#{next_capture}])
params[:#{key}] = URI.unescape(m.from(1))
params[:#{key}] = CGI.unescape(m.from(1))
end
]
end