module Rostra class ApplicationMailer < ActionMailer::Base helper 'rostra/application' layout Rostra::Config.email_layout def notification(user, added_content, question) @user = user @question = question @added_content = added_content mail( :to => user.rostra_user_email, :subject => "There's been activity on: #{question.title}", :from => Rostra::Config.deliver_emails_from ) end end end