Skip to content

Commit

Permalink
Fixed category email. Also turned off papertrail for user model.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Baran committed Jul 9, 2017
1 parent b2f4042 commit 2bf0d6e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/models/category.rb
Expand Up @@ -11,7 +11,7 @@ class Category < ApplicationRecord
has_many :measures, through: :measure_categories
has_many :indicators, through: :recommendations
has_many :progress_reports, through: :indicators
has_many :due_dates, through: :indicators
has_many :due_dates,-> { uniq }, through: :indicators

delegate :name, :email, to: :manager, prefix: true, allow_nil: true

Expand Down
2 changes: 1 addition & 1 deletion app/models/user.rb
Expand Up @@ -4,7 +4,7 @@ class User < ApplicationRecord
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
include DeviseTokenAuth::Concerns::User
has_paper_trail
# has_paper_trail

# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
Expand Down
4 changes: 0 additions & 4 deletions scheduler.rb
Expand Up @@ -11,10 +11,6 @@ module Clockwork
SendOverdueEmailsJob.perform_now()
end

every(1.week, 'Send Category Due Emails', at: 'Monday 08:00') do
SendCategoryDueEmailsJob.perform_now()
end

every(1.day, 'Send Categorhy Overdue Emails', at: '08:00') do
SendCategoryOverdueEmailsJob.perform_now()
end
Expand Down

0 comments on commit 2bf0d6e

Please sign in to comment.