Method: BMC::ButtonHelper#delete_button

Defined in:
app/helpers/bmc/button_helper.rb

#delete_button(url, **options) ⇒ Object



89
90
91
92
93
94
95
96
97
98
# File 'app/helpers/bmc/button_helper.rb', line 89

def delete_button(url, **options)
  options = {
    :icon      => :trash,
    :action    => :delete,
    :btn_style => :danger,
    :method    => :delete,
  }.merge(options)

  bs_button(url, **options)
end