Rails 2.3.1
Update to the release version of Rails 2.3.1.
This commit is contained in:
parent
bd9fa0ed0c
commit
5e7d2cf973
25 changed files with 199 additions and 26 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue