Exception: MetaPresenter::Builder::InvalidControllerError
- Inherits:
-
NameError
- Object
- NameError
- MetaPresenter::Builder::InvalidControllerError
- Defined in:
- lib/meta_presenter/builder.rb
Instance Method Summary collapse
-
#initialize(controller) ⇒ InvalidControllerError
constructor
Create a new error.
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 |