Module: LocoMotion::Patches::ViewComponent::SlotableDefaultPatch

Defined in:
lib/loco_motion/patches/view_component/slotable_default_patch.rb

Instance Method Summary collapse

Instance Method Details

#get_slot(slot_name) ⇒ Object

Override get_slot method



8
9
10
11
12
13
14
# File 'lib/loco_motion/patches/view_component/slotable_default_patch.rb', line 8

def get_slot(slot_name)
  # ensure content is loaded so slots will be defined
  content unless content_evaluated?

  # Call the original implementation
  super
end