Skip to content

Instantly share code, notes, and snippets.

@kylebragger
Created October 15, 2014 18:03

Revisions

  1. kylebragger created this gist Oct 15, 2014.
    9 changes: 9 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    class Foo
    def self.matches?(req)
    # return true/false here
    end
    end

    constraints(Foo) do
    # some routes
    end