Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class Foo
def self.matches?(req)
# return true/false here
end
end
constraints(Foo) do
# some routes
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment