lib/booties/modal.rb
##
# Renders the top-level div for the modal dialog. +block+ is passed to
# #dialog to fill in the content of the modal. +@id+ is used as the DOM ID
# of the modal. +@fade+ is used to include or exclude fading behavior.
Renders the top-level div for the modal dialog. +block+ is passed to
dialog to fill in the content of the modal. +@id+ is used as the DOM ID
of the modal. +@fade+ is used to include or exclude fading behavior.
Renders the top - level div for the modal dialog . + block + is passed to dialog to fill in the content of the modal . + @id + is used as the DOM ID of the modal . + @fade + is used to include or exclude fading behavior .
def render(**options, &block)
      classes = merge_classes ['modal', @fade], options.delete(:class)
      content_tag :div, class: classes, id: @id, **options do
        dialog(&block)
      end
    end
def render ( ** options , & block ) classes = merge_classes [ 'modal' , @fade ] , options . delete ( :class ) content_tag :div , class : classes , id : @id , ** options do dialog ( & block ) end end
Renders the top-level div for the modal dialog.
Renders the top - level div for the modal dialog .
options
<not_specific>
block
<not_specific>