Module: FoxTail::Concerns::Identifiable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Accordion::ItemComponent, AccordionComponent, FoxTail::CollapsibleComponent, DropdownComponent, FilterBarComponent, ModalComponent, PopoverComponent, TooltipComponent, TriggerBaseComponent
- Defined in:
- app/components/fox_tail/concerns/identifiable.rb
Instance Method Summary collapse
- #id ⇒ Object (also: #generate_unique_id)
Instance Method Details
#id ⇒ Object Also known as: generate_unique_id
12 13 14 |
# File 'app/components/fox_tail/concerns/identifiable.rb', line 12 def id html_attributes[:id] ||= self.class.generate_unique_id end |