Module: Notifly

Defined in:
lib/generators/notifly/install/utils.rb,
lib/notifly.rb,
lib/notifly/engine.rb,
lib/notifly/railtie.rb,
lib/notifly/models/base.rb,
lib/notifly/models/flyable.rb,
lib/notifly/models/notifiable.rb,
lib/notifly/models/options/fly.rb,
app/helpers/notifly/view_helper.rb,
app/models/notifly/notification.rb,
lib/services/notification_channel.rb,
app/mailers/notifly/notification_mailer.rb,
lib/generators/notifly/views/views_generator.rb,
app/controllers/notifly/application_controller.rb,
app/controllers/notifly/notifications_controller.rb,
lib/generators/notifly/install/install_generator.rb

Overview

github.com/sferik/rails_admin/blob/master/lib/generators/rails_admin/utils.rb

Defined Under Namespace

Modules: Generators, Models, ViewHelper Classes: ApplicationController, Engine, Notification, NotificationChannel, NotificationMailer, NotificationsController, Railtie

Constant Summary collapse

@@per_page =
10
@@icon_size =
'2x'
@@icon =
'bell'
@@icon_empty =
'bell-o'
@@mailer_sender =
'[email protected]'
@@timeout =
10000
@@websocket =
false

Class Method Summary collapse

Class Method Details

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

Default way to setup Notifly. Run rails generate notifly:install to create a fresh initializer with all configuration values.

Yields:

  • (_self)

Yield Parameters:

  • _self (Notifly)

    the object that the method was called on



35
36
37
# File 'lib/notifly.rb', line 35

def self.setup
  yield self
end