Skip to content

Instantly share code, notes, and snippets.

@kylebragger
Created October 15, 2014 18:03
Show Gist options
  • Save kylebragger/4b295cb665f641c981cb to your computer and use it in GitHub Desktop.
Save kylebragger/4b295cb665f641c981cb to your computer and use it in GitHub Desktop.
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