Sha256: f5028564caf207607b6aeaa2d9771cf725328c349e0023ad1ef5bbbd438c296e
Contents?: true
Size: 1.48 KB
Versions: 1
Compression:
Stored size: 1.48 KB
Contents
# Moromi::RequestHeader [](http://rubygems.org/gems/moromi-request_header) [](https://circleci.com/gh/moromi/moromi-request_header) ## Installation Add this line to your application's Gemfile: ```ruby gem 'moromi-request_header' ``` And then execute: $ bundle Or install it yourself as: $ gem install moromi-request_header ## Usage - initializers/moromi/request_header.rb ```ruby Moromi::RequestHeader.configure do |config| config.app_name = 'moromi' end ``` - append to application_controller.rb ```ruby class ApplicationController < ActionController::Base def custom_header @custom_header ||= Moromi::RequestHeader::Ios.new(headers: request.headers) end end ``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/moromi/moromi-request_header.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
moromi-request_header-0.2.0 | README.md |