Module: RailsSweetAlert2Confirm::ViewHelpers
- Defined in:
- lib/rails_sweetalert2_confirm/view_helpers.rb
Instance Method Summary collapse
- #button_tag(*args, &block) ⇒ Object
- #link_to(*args, &block) ⇒ Object
- #submit_tag(value = 'Save changes', options = {}) ⇒ Object
Instance Method Details
#button_tag(*args, &block) ⇒ Object
16 17 18 19 20 |
# File 'lib/rails_sweetalert2_confirm/view_helpers.rb', line 16 def (*args, &block) = args[block_given? ? 0 : 1] || {} = () super(*args, &block) end |
#link_to(*args, &block) ⇒ Object
5 6 7 8 9 |
# File 'lib/rails_sweetalert2_confirm/view_helpers.rb', line 5 def link_to(*args, &block) = args[block_given? ? 1 : 2] || {} = () super(*args, &block) end |
#submit_tag(value = 'Save changes', options = {}) ⇒ Object
11 12 13 14 |
# File 'lib/rails_sweetalert2_confirm/view_helpers.rb', line 11 def submit_tag(value = 'Save changes', = {}) = () super value, end |