Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

victor-kironde
Copy link
Contributor

@victor-kironde victor-kironde commented Nov 21, 2016

What does this PR do?

  • Admin edits regret email
  • regret email is sent to unsuccessful applicants

What are the relevant pivotal tracker stories?

closes 132577191

screen shot 2016-11-21 at 17 10 40

screen shot 2016-11-21 at 17 11 27

screen shot 2016-11-21 at 17 11 36

@codesword codesword temporarily deployed to workdey-staging-pr-125 November 21, 2016 14:43 Inactive
@@ -0,0 +1,4 @@
# Preview all emails at http://localhost:3000/rails/mailers/regret_mailer
class RegretMailerPreview < ActionMailer::Preview

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

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


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


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]

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]

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

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

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}")

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

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}")

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

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

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)

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

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

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)

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

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.

@codesword codesword temporarily deployed to workdey-staging-pr-125 November 22, 2016 08:05 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants