referthis 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/mailers/mailer.rb +6 -0
  2. metadata +2 -1
@@ -0,0 +1,6 @@
1
+ # http://stackoverflow.com/questions/6021372/best-way-to-create-unique-token-in-rails
2
+ class Mailer < ActionMailer::Base
3
+ def send_referral(referral)
4
+ mail(:to => Referee.find(referral.referee_id).endpoint, :from => 'adoptahydrantsyracuse@gmail.com', :subject => '<app_name>', :body => '<user_name> has referred you to <app_name>. You might be interested in checking out the following: <url>' + Base64::encode64(referral.id.to_s).chop + '.')
5
+ end
6
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: referthis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -24,6 +24,7 @@ files:
24
24
  - lib/db/migrate/20120621004904_create_referees.rb
25
25
  - lib/db/migrate/20120621215402_add_keys.rb
26
26
  - lib/initializers/smtp_settings.rb
27
+ - lib/mailers/mailer.rb
27
28
  homepage: http://github.com/ahcarpenter/referthis
28
29
  licenses: []
29
30
  post_install_message: