Class: FaviconsController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/favicons_controller.rb

Instance Method Summary collapse

Instance Method Details

#browserconfigObject



2
3
4
5
# File 'app/controllers/favicons_controller.rb', line 2

def browserconfig
  @tile_color = AllTheFavicons.ms_tile_color
  @tiles = AllTheFavicons::Tiles.all
end

#faviconObject



11
12
13
# File 'app/controllers/favicons_controller.rb', line 11

def favicon
  redirect_to asset_path("favicon.ico")
end

#manifestObject



7
8
9
# File 'app/controllers/favicons_controller.rb', line 7

def manifest
  render json: manifest_data.to_json
end