Module: Mojito::Controllers::Runtime::UrlScheme
- Defined in:
- lib/mojito/controllers/runtime/url_scheme.rb
Instance Method Summary collapse
Instance Method Details
#SCHEME(scheme) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/mojito/controllers/runtime/url_scheme.rb', line 7 def SCHEME(scheme) proc do case scheme when :https, :secure request.scheme === 'https' when :http, nil request.scheme === 'http' else request.scheme === scheme.to_s end end end |