Skip to content

Special functions

Patrik Sletmo edited this page Mar 25, 2017 · 3 revisions

There are a couple of special functions that can be utilised in order to ease specific tasks that are commonly needed.

sof-webbapp

sof-dbapp

CSVExport

Provides a simple base for exporting different data to csv files compatible with Microsoft Excel.

FaultReport

Used to report more critical faults to the server administrators. Errors will be reported to a preconfigured e-mail address.

Usage

FaultReport.send('Custom error message')

Configuration

Recipients

Edit the default to e-mail in app/mailers/fault_mailer.rb. This can be an array of, or a single, string.

E-mail template

There exist one template for the text version and html version of the e-mail respectively. These are found in app/views/fault_mailer/

Clone this wiki locally