class RoutingFilter::Uuid

Constants

UUID_SEGMENT

Public Instance Methods

around_recognize(path, env) { || ... } click to toggle source
# File lib/routing_filter/filters/uuid.rb, line 26
def around_recognize(path, env, &block)
  uuid = extract_segment!(UUID_SEGMENT, path)
  yield.tap do |params|
    params[:uuid] = uuid if uuid
  end