module NfgUi::Components::Utilities::Confirmable
Allows components to be setup to accept method: options
Public Instance Methods
confirm()
click to toggle source
# File lib/nfg_ui/components/utilities/confirmable.rb, line 8 def confirm options.fetch(:confirm, nil) end
data()
click to toggle source
Calls superclass method
# File lib/nfg_ui/components/utilities/confirmable.rb, line 12 def data confirm ? super.merge!(confirm: confirm) : super end
Private Instance Methods
non_html_attribute_options()
click to toggle source
Calls superclass method
# File lib/nfg_ui/components/utilities/confirmable.rb, line 18 def non_html_attribute_options super.push(:confirm) end