Sha256: 829471e6b4f7627862be81be006296b72da39f3cd832f6da30b5e1d3aab93028
Contents?: true
Size: 332 Bytes
Versions: 2
Compression:
Stored size: 332 Bytes
Contents
module Raisin module Routing ALL_VERSIONS = 'all' class VersionConstraint def initialize(version, is_default) @version = version @bypass = is_default || version == ALL_VERSIONS end def matches?(req) @bypass || @version == req.env['raisin.version'] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
raisin-0.1.2 | lib/raisin/routing.rb |
raisin-0.1.1 | lib/raisin/routing.rb |