method

https!

rails latest stable - Class: ActionDispatch::Integration::Session
https!(flag = true)
public

Specify whether or not the session should mimic a secure HTTPS request.

session.https!
session.https!(false)