Exception: Magic::Presenter::Helpers::MissingContext

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/magic/presenter/helpers.rb

Overview

The Magic::Presenter::Helpers::MissingContext exception is raised when no view context to run helpers in has been set.

Instance Method Summary collapse

Instance Method Details

#messageObject



11
12
13
14
15
16
# File 'lib/magic/presenter/helpers.rb', line 11

def message
	<<~TEXT
		missing view context
		You should set Magic::Presenter.view_context first
	TEXT
end