class Governor::ViewManager

Public Class Methods

flash(type, path) click to toggle source

Registers a given partial type at the given path to be displayed a single time.

Example:

Governor::ViewManager.flash(:bottom_of_form, 'articles/single_use')
# File lib/governor/view_manager.rb, line 15
def flash(type, path)
  @@flashes[type] ||= []
  @@flashes[type] << path
end