method
new
v4.0.2 -
Show latest stable
- Class:
ActionDispatch::SSL
new(app, options = {})public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/ssl.rb, line 9
def initialize(app, options = {})
@app = app
@hsts = options.fetch(:hsts, {})
@hsts = {} if @hsts == true
@hsts = self.class.default_hsts_options.merge(@hsts) if @hsts
@host = options[:host]
@port = options[:port]
end