Sha256: 51e35705688047264c2a1ff01be61a9ff2b0b41a2b1ede1aaa18794d171d7df8
Contents?: true
Size: 357 Bytes
Versions: 9
Compression:
Stored size: 357 Bytes
Contents
class Sendmail < ActionMailer::Base def form(params, meta, template) subject meta[:subject] from set_from(params, meta) recipients meta[:recipients] body :data => params content_type "text/html" template template end private def set_from(params, meta) params[:email].nil? ? params[:email] : meta[:from] end end
Version data entries
9 entries across 9 versions & 1 rubygems