Class: LatoView::AssetsController

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

Overview

Classe usata per ritornare alcuni file assets utili per l’interfaccia di lato_view.

Instance Method Summary collapse

Instance Method Details

#trumbowyg_iconsObject

Pagina che ritorna il file svg usato dall’input editor gestito tramite libreria trumbowyg



12
13
14
# File 'app/controllers/lato_view/assets_controller.rb', line 12

def trumbowyg_icons
  send_file "#{LatoView::Engine.root}/app/assets/images/lato_view/vendor/trumbowyg_icons.svg", type: 'image/svg+xml'
end