Module: Signalman

Defined in:
lib/signalman.rb,
app/models/signalman.rb,
lib/signalman/engine.rb,
lib/signalman/version.rb,
app/helpers/signalman/events_helper.rb,
app/controllers/signalman/jobs_controller.rb,
app/controllers/signalman/mails_controller.rb,
app/controllers/signalman/views_controller.rb,
app/controllers/signalman/queries_controller.rb,
app/controllers/signalman/requests_controller.rb,
app/controllers/signalman/application_controller.rb,
app/controllers/signalman/generators/models_controller.rb,
app/controllers/signalman/generators/scaffolds_controller.rb

Defined Under Namespace

Modules: EventsHelper Classes: ActionHandler, ApplicationController, BaseHandler, Engine, Event, JobHandler, JobsController, MailHandler, MailsController, QueriesController, QueryHandler, RequestsController, ViewHandler, ViewsController

Constant Summary collapse

VERSION =
"0.1.2"

Class Method Summary collapse

Class Method Details

.add_watcher(event_name, handler) ⇒ Object



191
192
193
# File 'lib/signalman.rb', line 191

def self.add_watcher(event_name, handler)
  ActiveSupport::Notifications.subscribe event_name, handler
end

.register_watchersObject



185
186
187
188
189
# File 'lib/signalman.rb', line 185

def self.register_watchers
  events.each do |event_name, options|
    options[:subscriber] = add_watcher event_name, options[:handler]
  end
end

.table_name_prefixObject



2
3
4
# File 'app/models/signalman.rb', line 2

def self.table_name_prefix
  "signalman_"
end