Module: NotifyUser

Defined in:
lib/notify_user.rb,
lib/notify_user/engine.rb,
lib/notify_user/version.rb,
app/models/notify_user/base_notification.rb,
app/helpers/notify_user/application_helper.rb,
app/mailers/notify_user/notification_mailer.rb,
lib/generators/notify_user/notification/notification_generator.rb

Defined Under Namespace

Modules: ApplicationHelper Classes: BaseNotification, Engine, InstallGenerator, NotificationGenerator, NotificationMailer, NotificationSerializer, NotificationsController

Constant Summary collapse

VERSION =
"0.0.1"
@@mailer_sender =
nil
@@authentication_method =
nil
@@current_user_method =
nil

Class Method Summary collapse

Class Method Details

.send_notification(type) ⇒ Object



21
22
23
# File 'lib/notify_user.rb', line 21

def self.send_notification(type)
  type.camelize.constantize.new
end

.setup {|_self| ... } ⇒ Object

Used to set up NotifyUser from the initializer.

Yields:

  • (_self)

Yield Parameters:

  • _self (NotifyUser)

    the object that the method was called on



17
18
19
# File 'lib/notify_user.rb', line 17

def self.setup
  yield self
end