class Admin::AdminController < ApplicationController protected def invalidate_browser_cache response.headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate' response.headers['Pragma'] = 'no-cache' response.headers['Expires'] = 'Mon, 01 Jan 1990 00:00:00 GMT' end def valid_password_confirmation unless current_user.valid_password_confirmation(params[:password_confirmation]) raise Carto::PasswordConfirmationError.new end end end