method
match_extraction
v2.2.1 -
Show latest stable
- Class:
ActionController::Routing::ControllerSegment
match_extraction(next_capture)public
No documentation available.
# File actionpack/lib/action_controller/routing/segments.rb, line 262
def match_extraction(next_capture)
if default
"params[:#{key}] = match[#{next_capture}] ? match[#{next_capture}].downcase : '#{default}'"
else
"params[:#{key}] = match[#{next_capture}].downcase if match[#{next_capture}]"
end
end