apprise-me 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  This gem utilizes apprise confirms for any link_to with confirm as a parameter. It uses the apprise project found at https://github.com/ThrivingKings/Apprise for the Rails asset pipeline (available since Rails 3.1).
4
4
 
5
+ Warning: This will not work links that have `:remote => true` set.
6
+
5
7
  ### Usage
6
8
 
7
9
  To make use of this project add the following lines to 'app/assets/javascripts/application.js':
@@ -1,3 +1,3 @@
1
1
  module AppriseMe
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -2,7 +2,7 @@ module AppriseMe
2
2
  module ViewHelpers
3
3
  def link_to(*args, &block)
4
4
  html_options = args[block_given? ? 1 : 2] || {}
5
- html_options['data-apprise-confirm'] = html_options.delete(:confirm) if html_options[:confirm]
5
+ html_options['data-apprise-confirm'] = html_options.delete(:confirm) if html_options[:confirm] && !html_options[:remote]
6
6
  super *args, &block
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apprise-me
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Colvin