-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add redemption and claim models and rewrite workflow accordingly
- Loading branch information
1 parent
98a957a
commit b712851
Showing
26 changed files
with
273 additions
and
209 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module Notifier | ||
extend ActiveSupport::Concern | ||
|
||
def notify_new_editor_by_mail(editor, lecture) | ||
NotificationMailer.with(recipient: editor, | ||
locale: editor.locale, | ||
lecture: lecture) | ||
.new_editor_email.deliver_later | ||
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
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,8 @@ | ||
# Claim class | ||
# claims store what is beign taken over by the user when they redeem a voucher | ||
# (e.g. a tutorial or a talk) | ||
|
||
class Claim < ApplicationRecord | ||
belongs_to :redemption | ||
belongs_to :claimable, polymorphic: true | ||
end |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.