Sha256: 573132fb6e761e7129e0a06afbb2056961f2bc9ea19f113d9a847446fee91078

Contents?: true

Size: 736 Bytes

Versions: 2

Compression:

Stored size: 736 Bytes

Contents

# Mail routes
Cloudfuji::Mailroute.map do |m|
  m.route("mail.new_comment") do
    m.subject('{:project_title}: {:mock_title} #{:mock_version} comment {:parent_comment_id}',
              :project_title     => m.words_and_spaces,
              :mock_title        => m.words_and_spaces,
              :mock_version      => m.number,
              :parent_comment_id => m.number)


    # Must be replying to send a new comment via email
    m.add_constraint(:reply, :required)
  end

  m.route("mail.new_project") do
    m.subject("{:project_title}: {:mock_title}",
              :project_title => m.words_and_spaces,
              :mock_title    => m.words_and_spaces)
  end

  m.route("mail.simple") do
    m.subject("hello")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffcrm_cloudfuji-0.1.4 lib/fat_free_crm/cloudfuji/mail_routes.rb
ffcrm_cloudfuji-0.1.3 lib/fat_free_crm/cloudfuji/mail_routes.rb