Sha256: 8c4ba35cee33d277b0c7bac18893b251aea4bdfaa573a7e69c8e2ff0dca607d4

Contents?: true

Size: 269 Bytes

Versions: 2

Compression:

Stored size: 269 Bytes

Contents

module AppriseMe
  module ViewHelpers
    def link_to(*args, &block)
      html_options = args[block_given? ? 1 : 2] || {}
      html_options['data-apprise-confirm'] = html_options.delete(:confirm) if html_options[:confirm]
      super *args, &block
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
apprise-me-0.0.2 lib/apprise-me/view_helpers.rb
apprise-me-0.0.1 lib/apprise-me/view_helpers.rb