Exception: ViewComponent::ContentAlreadySetForPolymorphicSlotError
- Inherits:
-
StandardError
- Object
- StandardError
- ViewComponent::ContentAlreadySetForPolymorphicSlotError
- Defined in:
- lib/view_component/errors.rb
Constant Summary collapse
- MESSAGE =
"Content for slot SLOT_NAME has already been provided."
Instance Method Summary collapse
-
#initialize(slot_name) ⇒ ContentAlreadySetForPolymorphicSlotError
constructor
A new instance of ContentAlreadySetForPolymorphicSlotError.
Constructor Details
#initialize(slot_name) ⇒ ContentAlreadySetForPolymorphicSlotError
Returns a new instance of ContentAlreadySetForPolymorphicSlotError.
167 168 169 |
# File 'lib/view_component/errors.rb', line 167 def initialize(slot_name) super(MESSAGE.gsub("SLOT_NAME", slot_name.to_s)) end |