Method: Massive::Notifications#notify

Defined in:
lib/massive/notifications.rb

#notify(message) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/massive/notifications.rb', line 9

def notify(message)
  if active_model_serializer
    notifier.notify(message) do
      active_model_serializer.new(reload)
    end
  end
end