Module: EasterHeaders

Defined in:
lib/easter_headers.rb,
lib/easter_headers/version.rb,
lib/easter_headers/middleware.rb

Defined Under Namespace

Classes: Middleware

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.init(header, value) ⇒ Object



4
5
6
# File 'lib/easter_headers.rb', line 4

def self.init(header, value)
  Rails.application.config.middleware.use EasterHeaders::Middleware, key: header, value: value
end