add check for Rails.secrets