router_constraints.rb revision 5af5b2ebdc340fa37e797a9d9b4f16ff75d1674b
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
# 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