Method: CoreSmtpConfiguration.included

Defined in:
lib/app/models/concerns/core_smtp_configuration.rb

.included(base) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/app/models/concerns/core_smtp_configuration.rb', line 9

def self.included(base)
  base.class_eval do
    #
    # Fields
    #
    field :default_email, type: String, default: '[email protected]'
    field :support_email, type: String, default: '[email protected]'
    field :smtp_name, type: String
    field :smtp_address, type: String
    field :smtp_domain, type: String
    field :smtp_port, type: Integer, default: 587
    field :smtp_user_name, type: String
    field :smtp_password, type: String
    field :smtp_enable_starttls_auto, type: Mongoid::Boolean, default: false
    field :mailgun_api_key, type: String
    field :email_notification_ttl, type: Integer, default: 180
  end
  base.extend SmtpClassMethods
end