class ActionDispatch::Routing::Mapper::Mapping
def build_conditions(current_conditions, request_class)
def build_conditions(current_conditions, request_class) conditions = current_conditions.dup conditions.keep_if do |k, _| request_class.public_method_defined?(k) end end