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.



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