Sha256: 7589dae79caba9af67d69049759d535d6aa472da1f3d150bbe5956d3cb377b41
Contents?: true
Size: 296 Bytes
Versions: 1
Compression:
Stored size: 296 Bytes
Contents
module GitVersionHeaderControllerExtension def self.included(base) base.send(:include, InstanceMethods) base.before_filter :add_git_version_header end module InstanceMethods def add_git_version_header response.headers['X-Version'] = ENV['GIT_VERSION'] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
git_version_header-0.0.1 | app/controllers/git_version_header_controller_extension.rb |