git checkout -b <branchname>
git add
git commit
git checkout <branchname>
git rebase origin/develop
| class ApplicationController < ActionController::Base … | |
| private | |
| def client_will_not_cache_response | |
| response.headers["Cache-Control”] = “no-cache, no-store” | |
| response.headers[“Pragma”] = “no-cache” | |
| response.headers[“Expires”] = “Fri, 01 Jan 1990 00:00:00 GMT” | |
| end | |
| end |
| require 'openssl' | |
| require "base64" | |
| module Encryption | |
| class << self | |
| # create OpenSSL keypair object, used for generated keypair | |
| def gen_rsa_key(size=2048) | |
| rsa_key = OpenSSL::PKey::RSA.new(size) |