The Rails way for `Setting.session_ttl.to_i * 60` is `Setting.session_ttl.to_i.minutes` :)