Module: Mumukit::Nuntius

Defined in:
lib/mumuki/bibliotheca.rb

Class Method Summary collapse

Class Method Details

.content_change_event_name(content_kind) ⇒ Object



16
17
18
# File 'lib/mumuki/bibliotheca.rb', line 16

def self.content_change_event_name(content_kind)
  "#{content_kind.to_s.camelize}Changed"
end

.notify_content_change_event!(content_kind, slug) ⇒ Object



12
13
14
# File 'lib/mumuki/bibliotheca.rb', line 12

def self.notify_content_change_event!(content_kind, slug)
  notify_event! content_change_event_name(content_kind), slug: slug.to_s
end