Sha256: 9e48c281bea0c06fb569b6aea18784935f9e28e112d5544983bfe9b14d2b86c8

Contents?: true

Size: 798 Bytes

Versions: 1

Compression:

Stored size: 798 Bytes

Contents

require "georgia/mailer/engine"

module Georgia
  module Mailer

    # Helper to turn off email notifications
    mattr_accessor :turn_on_email_notifications
    @@turn_on_email_notifications = true

    # Add to Georgia by default
    Georgia.navigation += %w(messages)

    Georgia.permissions.merge!(mailer: {
      read_messages:          { communications: true,  admin: true, },
      print_messages:         { communications: true,  admin: true, },
      mark_messages_as_spam:  { communications: true,  admin: true, },
      mark_messages_as_ham:   { communications: true,  admin: true, },
      delete_messages:        { communications: true,  admin: true, },
      empty_trash:            { communications: false, admin: true, },
    })

    Georgia.roles += %w(communications)

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia_mailer-0.8.0 lib/georgia_mailer.rb