Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/secured.rb
Instance Method Summary collapse
Instance Method Details
#secured(&block) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/secured.rb', line 13 def secured &block if Rails.env.development? yield else constraints SslConstraint, &block end end |