rack-devfavicon

A rack middleware to show gray-scaled favicon on development

MIT License

Downloads
6K
Stars
18
Committers
2

Rack::DevFavicon

The Rack::DevFavicon middleware shows the favicon in gray scale on a specified environment

Installation

Add this line to your application's Gemfile:

group :development do
    gem 'rack-devfavicon'
end

And then execute:

$ bundle install

Or install it yourself as:

$ gem install rack-devfavicon

Usage

if ENV['RACK_ENV'] != 'production'
    require 'rack-devfavicon'
    use Rack::DevFavicon
end

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request