Class: VersionsMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/versions_mailer.rb

Instance Method Summary collapse

Instance Method Details

#new_version(user, project, version) ⇒ Object



2
3
4
5
6
7
8
9
# File 'app/mailers/versions_mailer.rb', line 2

def new_version(user, project, version)
  @user = user
  @version = version
  @project = project
  @repos = @project.subscribed_repos(@user)

  mail to: user.email, subject: "New release of #{@project} (#{version.number}) on #{@project.platform_name}"
end