-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implements App Enabled Emails #211
Implements App Enabled Emails #211
Conversation
|
||
def self.action(action) | ||
@action = action | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember having trouble subclassing class attributes
Why aren't you using the class_attr stuff here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not 100% following you. This is the same pattern we have been using with the Analytics Jobs, and the Issue Jobs for Child Class instance vars.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use this pattern in the healthchecks
I remember there was a reason for it
…ny other things) email tracking
… sendgrid adapter
…dds configuration for production mailer
…ing for child emails, adds a commented InlinePreviewInterceptor
0ebbcd9
to
5ca810a
Compare
5ca810a
to
ec376cf
Compare
@@ -1,4 +1,12 @@ | |||
Rails.application.configure do | |||
#Mailer Previews | |||
config.action_mailer.preview_path = Saas::Engine.root.join('test/mailers') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Help me understand what this is doing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line points the Action::Mailer
previewer to look for mailer previews in the Saas::Engine
. Otherwise when we attempt to use previews Rails is not able to find them.
nokogiri (1.6.6.2) | ||
mini_portile (~> 0.6.0) | ||
rack (1.6.0) | ||
rack (1.6.4) | ||
rack-test (0.6.3) | ||
rack (>= 1.0) | ||
rails (4.2.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alarm bells are ringing, thus #237.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha, thanks for opening that!
8385b9b
to
f2795e2
Compare
Pulled |
@dahlbyk |
f2795e2
to
f79f194
Compare
f79f194
to
9746411
Compare
How does 9746411#diff-409415fd755afb7ec1e211a3c1b9b519 look? |
Should I just reopen this against master at this point ? |
Yup. |
Merges into
discorick/canceled_and_expired_analytics
References https://github.com/huboard/corp/issues/48
The Scope of this this PR changed quite a bit during its life-time. From where we stand today this accomplishes the following:
Action::Mailer
in the Saas Engine with some very basic layouts