mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-02-21 20:20:34 +09:00
14 lines
312 B
Ruby
14 lines
312 B
Ruby
module VersionHeaders
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
before_action :set_version_headers
|
|
end
|
|
|
|
private
|
|
def set_version_headers
|
|
response.headers["X-Version"] = Rails.application.config.app_version
|
|
response.headers["X-Rev"] = Rails.application.config.git_revision
|
|
end
|
|
end
|