module Tolliver

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

*****************************************************************************

***************************************************************************** *

*

* *****************************************************************************

Public Class Methods

deliver(notification) click to toggle source
# File lib/tolliver.rb, line 62
def self.deliver(notification)
  Tolliver::Services::DeliveryService.instance.deliver(notification)
end
enqueue_for_delivery(notification) click to toggle source
# File lib/tolliver.rb, line 66
def self.enqueue_for_delivery(notification)
  Tolliver::Services::DeliveryService.instance.enqueue_for_delivery(notification)
end
notification_attachment_model() click to toggle source
# File lib/tolliver.rb, line 99
def self.notification_attachment_model
  return @@notification_attachment_model.constantize
end
notification_delivery_model() click to toggle source
# File lib/tolliver.rb, line 108
def self.notification_delivery_model
  return @@notification_delivery_model.constantize
end
notification_model() click to toggle source
# File lib/tolliver.rb, line 90
def self.notification_model
  return @@notification_model.constantize
end
notification_receiver_model() click to toggle source
# File lib/tolliver.rb, line 117
def self.notification_receiver_model
  return @@notification_receiver_model.constantize
end
notification_template_model() click to toggle source
# File lib/tolliver.rb, line 126
def self.notification_template_model
  return @@notification_template_model.constantize
end
notify(options) click to toggle source

************************************************************************* Services *************************************************************************

# File lib/tolliver.rb, line 58
def self.notify(options)
  Tolliver::Services::NotificationService.instance.notify(options)
end
reset_delivery(notification) click to toggle source
# File lib/tolliver.rb, line 70
def self.reset_delivery(notification)
  Tolliver::Services::DeliveryService.instance.reset_delivery(notification)
end
setup() { |self| ... } click to toggle source

Default way to setup module

# File lib/tolliver.rb, line 79
def self.setup
  yield self
end
table_name_prefix() click to toggle source

This will keep Rails Engine from generating all table prefixes with the engines name

# File lib/tolliver.rb, line 51
def self.table_name_prefix
end