Class: MerbSliceSms::SmsMailer

Inherits:
Merb::MailController
  • Object
show all
Defined in:
app/mailers/sms_mailer.rb

Instance Method Summary collapse

Instance Method Details

#alertObject

controller_for_slice MerbSliceSms, :templates_for => :mailer, :path => ‘views’



5
6
7
8
9
# File 'app/mailers/sms_mailer.rb', line 5

def alert
  @message = params[:body]
  Merb.logger.info "Text message sent."
  render_mail
end