Module: Eventifier
- Defined in:
- lib/eventifier.rb,
lib/eventifier/engine.rb,
lib/eventifier/tracker.rb,
lib/eventifier/matchers.rb,
app/models/eventifier/event.rb,
app/models/eventifier/ghost.rb,
lib/eventifier/event_tracking.rb,
lib/eventifier/mailers/helpers.rb,
app/helpers/eventifier/path_helper.rb,
app/models/eventifier/notification.rb,
app/helpers/eventifier/notification_helper.rb,
lib/generators/eventifier/install/install_generator.rb
Defined Under Namespace
Modules: EventTracking, Generators, Mailers, Matchers, NotificationHelper, PathHelper
Classes: ApplicationController, Delivery, Engine, Event, EventBuilder, EventSubscriber, EventTranslator, Ghost, Mailer, Notification, NotificationMapping, NotificationSetting, NotificationSubscriber, NotificationTranslator, NotificationsController, Notifier, Preferences, PreferencesController, Relationship, TrackableClass, Tracker
Constant Summary
collapse
- OBSERVER_CLASS =
ActiveRecord::Observer
Class Method Summary
collapse
Class Method Details
.mailer ⇒ Object
36
37
38
|
# File 'lib/eventifier.rb', line 36
def self.mailer
ActiveSupport::Dependencies.constantize(@@mailer_name)
end
|
.resume! ⇒ Object
44
45
46
|
# File 'lib/eventifier.rb', line 44
def self.resume!
@suspended = false
end
|
.setup {|_self| ... } ⇒ Object
32
33
34
|
# File 'lib/eventifier.rb', line 32
def self.setup
yield self
end
|
.suspend(&block) ⇒ Object
48
49
50
51
52
|
# File 'lib/eventifier.rb', line 48
def self.suspend(&block)
suspend!
yield
resume!
end
|
.suspend! ⇒ Object
54
55
56
|
# File 'lib/eventifier.rb', line 54
def self.suspend!
@suspended = true
end
|
.suspended? ⇒ Boolean
58
59
60
|
# File 'lib/eventifier.rb', line 58
def self.suspended?
@suspended
end
|
.tracked_classes ⇒ Object
40
41
42
|
# File 'lib/eventifier.rb', line 40
def self.tracked_classes
@tracked_classes ||= []
end
|