# File lib/action_dispatch/routing/mapper.rb, line 741 def constraints(constraints = {}) scope(:constraints => constraints) { yield } end