module Coupdoeil::ApplicationHelper
def coupdoeil_hovercard_tag(hovercard, options = nil, **attributes_or_options, &)
def coupdoeil_hovercard_tag(hovercard, options = nil, **attributes_or_options, &) if options.present? attributes = attributes_or_options else options = attributes_or_options.extract!(*Hovercard::OptionsSet::OPTION_NAMES) attributes = attributes_or_options end hovercard_options = options render(Coupdoeil::Tag.new(hovercard:, hovercard_options:, attributes:), &) end