app/controllers/application_controller.rb
# Checks for a valid app access token in the 'X-App-Access-Token' header.
Checks for a valid app access token in the 'X-App-Access-Token' header.
Checks for a valid app access token in the ' X - App - Access - Token ' header .
def valid_app_access_token?
    token = request.headers['X-App-Access-Token']
    token.present? && token == Rails.application.secrets.app_access_token
  end
def valid_app_access_token? token = request . headers [ 'X-App-Access-Token' ] token . present? && token == Rails . application . secrets . app_access_token end
Checks for a valid app access token in the 'X-App-Access-Token' header.
Checks for a valid app access token in the ' X - App - Access - Token ' header .