Module: AmaLayout::Notifications
- Defined in:
- lib/ama_layout/notifications.rb,
lib/ama_layout/notifications/redis_store.rb,
lib/ama_layout/notifications/abstract_store.rb
Overview
Usage:
class MyClass
include AmaLayout::Notifications
notification_store AmaLayout::Notifications::RedisStore.new(options)
notification_foreign_key :a_method_name_or_proc # defaults to :id
...
end
Defined Under Namespace
Modules: ClassMethods, InstanceMethods Classes: AbstractStore, RedisStore
Constant Summary collapse
- InvalidNotificationStore =
Class.new(StandardError)
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
16 17 18 19 |
# File 'lib/ama_layout/notifications.rb', line 16 def self.included(base) base.extend(ClassMethods) base.include(InstanceMethods) end |