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

Version Path
enju_library-0.3.11 app/models/concerns/export_file.rb
enju_library-0.3.10 app/models/concerns/export_file.rb
enju_library-0.3.9 app/models/concerns/export_file.rb
enju_library-0.3.8 app/models/concerns/export_file.rb
enju_library-0.3.8.rc.2 app/models/concerns/export_file.rb
enju_library-0.3.8.rc.1 app/models/concerns/export_file.rb
enju_library-0.4.0.rc.1 app/models/concerns/export_file.rb
enju_library-0.3.7 app/models/concerns/export_file.rb
enju_library-0.3.6 app/models/concerns/export_file.rb
enju_library-0.4.0.beta.4 app/models/concerns/export_file.rb
enju_library-0.4.0.beta.3 app/models/concerns/export_file.rb
enju_library-0.4.0.beta.2 app/models/concerns/export_file.rb
enju_library-0.4.0.beta.1 app/models/concerns/export_file.rb
enju_library-0.3.5 app/models/concerns/export_file.rb
enju_library-0.3.4 app/models/concerns/export_file.rb
enju_library-0.3.3 app/models/concerns/export_file.rb