Sha256: 657fa47a288076ce774828763b5253ecbda8a9d76a76540b56d0be4ad2725a0b

Contents?: true

Size: 374 Bytes

Versions: 1

Compression:

Stored size: 374 Bytes

Contents

module GitVersionHeader
  class Engine < ::Rails::Engine
    
    initializer 'git_version_header.controller' do |app|  
      ActiveSupport.on_load(:action_controller) do  
        include GitVersionHeaderControllerExtension  
      end
    end

    initializer 'git_version_header.initializer' do |app|  
      ENV['GIT_VERSION'] = `git rev-parse HEAD`
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git_version_header-0.0.1 lib/git_version_header/engine.rb