rails-sweetalert2-confirm 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57c1e4e4b08eca850cb2e50488b4ff420ea0895c
4
- data.tar.gz: 1e362ece35d0481709b78967ea4758a5f214bd67
3
+ metadata.gz: 1423bcc9a21daca893c5ebf0882f549f21032667
4
+ data.tar.gz: 3fd604c6fc7f19f5b13fcb4091372df153ae7300
5
5
  SHA512:
6
- metadata.gz: df958796f883cc999e6aea4ce37206162e1e6f592ac75db4b88694beb5a628f2e67d6a6a7d011e0d1186a28b7750b7f4bc6da294127b993ebeeaf74e373d4682
7
- data.tar.gz: 30bbb9c2af5ce627cc7b616ab50443cad1c7e464fab5508b286a71c5e8825937e58e715b2787ccc2b62a9a60ad780015e11de40c148316a99b94b2b90e598493
6
+ metadata.gz: 58e3d4a38b7b47d4322528334f156855c231054faf6cf2b937ec66d71db7129b496f0657efb14963472014e3a982b79390c80eb2c6582f0bcf5dd5f4ec4ca4bf
7
+ data.tar.gz: 0607985d4a74c65ae178787dd5f734e759375d49fd02e9cb23e317a599fe49eb40789008a75d5f0e5ebb4e70c34dc2257013bc139f1f0bf5b74593bafe10a67a
@@ -1,3 +1,3 @@
1
1
  module RailsSweetAlert2Confirm
2
- VERSION = "0.9.7"
2
+ VERSION = "0.9.8"
3
3
  end
@@ -26,14 +26,14 @@ module RailsSweetAlert2Confirm
26
26
  protected
27
27
 
28
28
  def merge_options_into_swal(options)
29
+ return options unless options_has_confirm?(options)
29
30
  options = merge_confirm_into_swal(options)
30
31
  options = merge_remote_into_swal(options)
31
32
  merge_method_into_swal(options)
32
33
  end
33
34
 
34
- %w(remote method confirm).each do |option|
35
+ %w(remote method confirm).each_with_index do |option|
35
36
  define_method("merge_#{option}_into_swal") do |options|
36
- return if %w(remote method).include?(option) && !options_has_confirm?
37
37
  if send("options_has_#{option}?", options)
38
38
  options[:data] ||= {}
39
39
  options[:data][:swal] ||= {}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-sweetalert2-confirm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Woodward