Skip to content

Commit

Permalink
Rename initializer to AppInfo (#3657)
Browse files Browse the repository at this point in the history
  • Loading branch information
kfrz authored Dec 18, 2019
1 parent ac66a9f commit f441042
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ def tags_context
end

def set_app_info_headers
headers['X-GitHub-Repository'] = 'https://github.com/department-of-veterans-affairs/vets-api'
headers['X-Git-SHA'] = AppInfo::GIT_REVISION
headers['X-Git-SHA'] = AppInfo::GIT_REVISION
headers['X-GitHub-Repository'] = AppInfo::GITHUB_URL
end

def saml_settings(options = {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

module AppInfo
GIT_REVISION = `git rev-parse HEAD`&.chomp
GITHUB_URL = 'https://github.com/department-of-veterans-affairs/vets-api'
end

0 comments on commit f441042

Please sign in to comment.