Exception: ViewComponent::ContentAlreadySetForPolymorphicSlotError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/view_component/errors.rb

Constant Summary collapse

MESSAGE =
"Content for slot SLOT_NAME has already been provided."

Instance Method Summary collapse

Constructor Details

#initialize(slot_name) ⇒ ContentAlreadySetForPolymorphicSlotError

Returns a new instance of ContentAlreadySetForPolymorphicSlotError.



165
166
167
# File 'lib/view_component/errors.rb', line 165

def initialize(slot_name)
  super(MESSAGE.gsub("SLOT_NAME", slot_name.to_s))
end