Exception: MetaPresenter::Builder::InvalidControllerError

Inherits:
NameError
  • Object
show all
Defined in:
lib/meta_presenter/builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(controller) ⇒ InvalidControllerError

Create a new error



34
35
36
# File 'lib/meta_presenter/builder.rb', line 34

def initialize(controller)
  super("You tried to present a #{controller.class.name} class, but only a Rails controller or mailer can be presented")
end