-
Notifications
You must be signed in to change notification settings - Fork 12
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
#[132577191] Send Regret Email #125
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,4 @@ | |||
# Preview all emails at http://localhost:3000/rails/mailers/regret_mailer | |||
class RegretMailerPreview < ActionMailer::Preview | |||
|
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.
Extra empty line detected at class body beginning.
@@ -0,0 +1,4 @@ | |||
# Preview all emails at http://localhost:3000/rails/mailers/regret_mailer | |||
class RegretMailerPreview < ActionMailer::Preview | |||
|
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.
Extra empty line detected at class body beginning.
expect(page).to have_content(artisan.firstname) | ||
expect(page).to have_content(artisan.email) | ||
end | ||
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.
Extra blank line detected.
expect(page).to have_content(artisan.firstname) | ||
expect(page).to have_content(artisan.email) | ||
end | ||
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.
Extra blank line detected.
enum status: [:not_reviewed, :strong_yes, | ||
:yes, :no, :strong_no, :certified] | ||
:yes, :no, :strong_no,:certified, :accepted_emailed, :rejected_emailed] |
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.
Space missing after comma.
Line is too long. [87/80]
enum status: [:not_reviewed, :strong_yes, | ||
:yes, :no, :strong_no, :certified] | ||
:yes, :no, :strong_no,:certified, :accepted_emailed, :rejected_emailed] |
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.
Space missing after comma.
Line is too long. [87/80]
@user = user | ||
@body = body | ||
mail(to: @user.email, subject: "Job Offer #{user.firstname}") | ||
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.
Tab detected.
@user = user | ||
@body = body | ||
mail(to: @user.email, subject: "Job Offer #{user.firstname}") | ||
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.
Tab detected.
def regret_email(user, body) | ||
@user = user | ||
@body = body | ||
mail(to: @user.email, subject: "Job Offer #{user.firstname}") |
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.
Tab detected.
class RegretMailer < ApplicationMailer | ||
def regret_email(user, body) | ||
@user = user | ||
@body = body |
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.
Tab detected.
def regret_email(user, body) | ||
@user = user | ||
@body = body | ||
mail(to: @user.email, subject: "Job Offer #{user.firstname}") |
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.
Tab detected.
@@ -0,0 +1,7 @@ | |||
class RegretMailer < ApplicationMailer | |||
def regret_email(user, body) | |||
@user = user |
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.
Tab detected.
Use 2 (not 1) spaces for indentation.
class RegretMailer < ApplicationMailer | ||
def regret_email(user, body) | ||
@user = user | ||
@body = body |
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.
Tab detected.
@@ -0,0 +1,7 @@ | |||
class RegretMailer < ApplicationMailer | |||
def regret_email(user, body) |
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.
Use 2 (not 1) spaces for indentation.
Tab detected.
@@ -0,0 +1,7 @@ | |||
class RegretMailer < ApplicationMailer | |||
def regret_email(user, body) | |||
@user = user |
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.
Tab detected.
Use 2 (not 1) spaces for indentation.
@rejected_users = User.artisans.rejected | ||
body = params[:body] | ||
@rejected_users.each do |user| | ||
RegretMailer.regret_email(user, body).deliver_now |
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.
Use 2 (not 0) spaces for indentation.
@@ -0,0 +1,7 @@ | |||
class RegretMailer < ApplicationMailer | |||
def regret_email(user, body) |
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.
Use 2 (not 1) spaces for indentation.
Tab detected.
@rejected_users = User.artisans.rejected | ||
body = params[:body] | ||
@rejected_users.each do |user| | ||
RegretMailer.regret_email(user, body).deliver_now |
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.
Use 2 (not 0) spaces for indentation.
118744a
to
f0ae832
Compare
What does this PR do?
What are the relevant pivotal tracker stories?
closes
132577191