Add a multiple-constraints example

This commit is contained in:
Rémy Coutable 2013-01-19 14:13:57 +01:00
Родитель c0388907fd
Коммит 671a3115b6
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -84,6 +84,9 @@ config.middleware.use Rack::SslEnforcer, :only => %r{^/admin/}
config.middleware.use Rack::SslEnforcer, :except => ['/demo', %r{^/public/}]
config.middleware.use Rack::SslEnforcer, :ignore => '/assets'
# You can also combine multiple constraints
config.middleware.use Rack::SslEnforcer, :only => '/cart', :ignore => %r{/assets}, :strict => true
```
### Method constraints