Project

General

Profile

« Previous | Next » 

Revision 9d43fc71

Added by Michael Moll almost 6 years ago

Fixes #19789 - fix Layout/SpaceAroundOperators cop

View differences:

app/controllers/api/base_controller.rb
end
def add_version_header
response.headers["Foreman_version"]= SETTINGS[:version].full
response.headers["Foreman_api_version"]= api_version
response.headers["Foreman_version"] = SETTINGS[:version].full
response.headers["Foreman_api_version"] = api_version
end
# this method is used with nested resources, where obj_id is passed into the parameters hash.

Also available in: Unified diff