-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
154 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,7 @@ | |
config.should_send_emails = true | ||
config.action_mailer.delivery_method = :sendmail | ||
config.action_mailer.default_url_options = { :host => 'sapos.ic.uff.br' } | ||
config.action_mailer.sendmail_settings = { :arguments => '-i -f "SAPOS <[email protected]>"', :location => '/usr/sbin/sendmail' } | ||
config.action_mailer.sendmail_settings = { :arguments => '-i ', :location => '/usr/sbin/sendmail' } | ||
|
||
config.middleware.use ExceptionNotifier, | ||
:email_prefix => "[SAPOS: Error] ", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
db/migrate/20200924170230_add_has_grades_report_pdf_attachment_to_notification.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright (c) Universidade Federal Fluminense (UFF). | ||
# This file is part of SAPOS. Please, consult the license terms in the LICENSE file. | ||
|
||
class AddHasGradesReportPdfAttachmentToNotification < ActiveRecord::Migration[5.1] | ||
def self.up | ||
add_column :notifications, :has_grades_report_pdf_attachment, :boolean, default: false | ||
end | ||
|
||
def self.down | ||
remove_column :notifications, :has_grades_report_pdf_attachment | ||
end | ||
end |
12 changes: 12 additions & 0 deletions
12
db/migrate/20200924175430_add_attachments_file_names_to_notification_log.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright (c) Universidade Federal Fluminense (UFF). | ||
# This file is part of SAPOS. Please, consult the license terms in the LICENSE file. | ||
|
||
class AddAttachmentsFileNamesToNotificationLog < ActiveRecord::Migration[5.1] | ||
def self.up | ||
add_column :notification_logs, :attachments_file_names, :string | ||
end | ||
|
||
def self.down | ||
remove_column :notification_logs, :attachments_file_names | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters