Sha256: 11e459984d1e489b52bf098d7da30a23da9207edf1cdb8298d39338dc83143ba
Contents?: true
Size: 373 Bytes
Versions: 16
Compression:
Stored size: 373 Bytes
Contents
module ExportFile extend ActiveSupport::Concern included do belongs_to :user validates :user, presence: true attr_accessor :mode end def send_message(mailer) sender = User.find(1) message = Message.create!( recipient: user.username, sender: sender, body: mailer.body.raw_source, subject: mailer.subject ) end end
Version data entries
16 entries across 16 versions & 1 rubygems