-
Notifications
You must be signed in to change notification settings - Fork 0
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.
Provides a simple base for exporting different data to csv files compatible with Microsoft Excel.
Used to report more critical faults to the server administrators. Errors will be reported to a preconfigured e-mail address.
FaultReport.send('Custom error message')
Edit the default to
e-mail in app/mailers/fault_mailer.rb
. This can be an array of, or a single, string.
There exist one template for the text version and html version of the e-mail respectively. These are found in app/views/fault_mailer/