Sha256: 98f9a9d5bb307e00438f7eaf5d985d38559a8b30b12bf204b83812b2b39dedd5
Contents?: true
Size: 267 Bytes
Versions: 2
Compression:
Stored size: 267 Bytes
Contents
module Mascot # Route constraint for rails routes.rb file. class RouteConstraint def initialize(resources = Mascot.configuration.resources) @resources = resources end def matches?(request) !!@resources.get(request.path) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mascot-rails-0.1.7 | lib/mascot/route_constraint.rb |
mascot-rails-0.1.6 | lib/mascot/route_constraint.rb |