Sha256: 866fb37d04c0b5eebb5909db2c1d987aa610cf211a96f5c333e6095e4581b785
Contents?: true
Size: 386 Bytes
Versions: 157
Compression:
Stored size: 386 Bytes
Contents
class ApplicationController < ActionController::Base include ExceptionHandler before_action :check_env_variables private def check_env_variables missing_vars = %w[HUBSPOT_CLIENT_ID HUBSPOT_CLIENT_SECRET].select { |var| ENV[var].blank? } raise(ExceptionHandler::HubspotError.new, "Please specify #{missing_vars.join(', ')} in .env") if missing_vars.present? end end
Version data entries
157 entries across 22 versions & 1 rubygems