module Sweetify
Constants
- VERSION
Attributes
sweetalert_library[W]
Public Class Methods
render(json)
click to toggle source
# File lib/sweetify/render.rb, line 9 def render(json) (sweetalert_library == 'sweetalert2' ? "Swal.fire(#{json})" : "swal(#{json})").html_safe end
sweetalert_library()
click to toggle source
# File lib/sweetify/render.rb, line 5 def sweetalert_library @sweetalert_library || 'sweetalert2' end