We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here is an example of a mailer_preview that would be ideal for our code from now on. This would remove the duplicate code:
class InvitePreview < ActionMailer::Preview def accepted show_email do @mail = InviteMailer.accepted(@user, @organization, true).message end end protected def show_email(&block) @mail = nil Organization.transaction do @user = User.create!(name: 'Bob User', email: '[email protected]') @invite = Invite.create(user: @user, email: '[email protected]') yield raise ActiveRecord::Rollback end @mail end end
That's an example code adapt it to our preview classes.
The text was updated successfully, but these errors were encountered:
Panioglo
No branches or pull requests
Here is an example of a mailer_preview that would be ideal for our code from now on. This would remove the duplicate code:
That's an example code adapt it to our preview classes.
The text was updated successfully, but these errors were encountered: