Exception: ViewComponent::MultipleMatchingTemplatesForPreviewError
- Inherits:
-
StandardError
- Object
- StandardError
- ViewComponent::MultipleMatchingTemplatesForPreviewError
- Defined in:
- lib/view_component/errors.rb
Constant Summary collapse
- MESSAGE =
"Found multiple templates for TEMPLATE_IDENTIFIER."
Instance Method Summary collapse
-
#initialize(template_identifier) ⇒ MultipleMatchingTemplatesForPreviewError
constructor
A new instance of MultipleMatchingTemplatesForPreviewError.
Constructor Details
#initialize(template_identifier) ⇒ MultipleMatchingTemplatesForPreviewError
Returns a new instance of MultipleMatchingTemplatesForPreviewError.
217 218 219 |
# File 'lib/view_component/errors.rb', line 217 def initialize(template_identifier) super(MESSAGE.gsub("TEMPLATE_IDENTIFIER", template_identifier)) end |