Class: EmailSenderController

Inherits:
Spree::BaseController
  • Object
show all
Defined in:
app/controllers/email_sender_controller.rb

Instance Method Summary collapse

Instance Method Details

#send_mailObject



4
5
6
7
8
9
10
# File 'app/controllers/email_sender_controller.rb', line 4

def send_mail
  if request.get?
    @mail_to_friend = MailToFriend.new(:sender_email => current_user.try(:email))
  else
    mail_to_friend
  end
end