Module: EffectiveMessaging

Includes:
EffectiveGem
Defined in:
lib/effective_messaging.rb,
lib/effective_messaging/engine.rb,
lib/effective_messaging/version.rb,
lib/generators/effective_messaging/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Engine

Constant Summary collapse

VERSION =
'0.10.0'.freeze

Class Method Summary collapse

Class Method Details

.config_keysObject



8
9
10
11
12
13
14
# File 'lib/effective_messaging.rb', line 8

def self.config_keys
  [
    :chats_table_name, :chat_users_table_name, :chat_messages_table_name, :notifications_table_name, :notification_logs_table_name,
    :layout,
    :mailer, :parent_mailer, :deliver_method, :mailer_layout, :mailer_sender, :mailer_froms, :mailer_admin, :mailer_subject
  ]
end

.mailer_classObject



18
19
20
# File 'lib/effective_messaging.rb', line 18

def self.mailer_class
  mailer&.constantize || Effective::MessagingMailer
end

.NotificationObject



22
23
24
# File 'lib/effective_messaging.rb', line 22

def self.Notification
  Effective::Notification
end