module Padrino::Responders::Notifiers::FlashNotifier

Public Class Methods

say(app, kind, message, *args, &block) click to toggle source

Saves specified message as flash notification with specified type.

Examples

notifier.say(self, :error, "Something went wrong")

… will save message to flash[:notice]

# File lib/padrino-responders/notifiers/flash_notifier.rb, line 14
def self.say(app, kind, message, *args, &block)
  app.flash[kind.to_sym] = message
end