router_constraints.rb revision 1365c7c52c67284d3c305ed7cbc2f22a20de7acf
end
end
end
end
return result
end
end
end
end
super()
end
result = !ontology.nil?
if result
theorem = element.theorem if @map[:theorem]
else
{}
end
path_params[@map[:proof_attempt]] = proof_attempt.id if @map[:proof_attempt]
path_params[@map[:theorem]] = theorem.id if @map[:theorem]
path_params[@map[:ontology]] = ontology.id if @map[:ontology]
path_params[@map[:element]] = element.id if @map[:element]
end
return result
end
end
end
!! version_id
end
end
# Prune ref-portion
end
end
result = !ontology.nil?
if result
end
return result
end
end
regex = %r{
(\?[^=]+$) # matches a lone MMT-argument
|
\?([^=;&]+)[&;].*$ # splits a lone MMT-arg from normal query-string
|
\?.*$ # drops a the whole standard query-string
}x
# remove the ref/:version_number portion from path
end
end
super()
end
# In some cases request.accepts == [nil] (e.g. cucumber tests),
# in these cases we will default to true.
highest_mime ? mime_types.any? { |m| highest_mime == m } : true
end
end
end
end
end