Class: Locomotive::Steam::Middlewares::Favicon
- Inherits:
-
Object
- Object
- Locomotive::Steam::Middlewares::Favicon
- Includes:
- Helpers
- Defined in:
- lib/locomotive/steam/middlewares/favicon.rb
Instance Method Summary collapse
Methods included from Helpers
#html?, #json?, #log, #make_local_path, #modify_path, #mounted_on, #redirect_to, #render_response
Instance Method Details
#call(env) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/locomotive/steam/middlewares/favicon.rb', line 10 def call(env) if env['PATH_INFO'] == '/favicon.ico' # Default and empty Favicon rendered [200, { 'Content-Type' => 'image/vnd.microsoft.icon' }, ['']] else app.call(env) end end |