formify 0.23.9 → 0.23.10

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
  SHA256:
3
- metadata.gz: f3ef36160a1ce342ae21695af4cd2ba5ae2d795bbb1096b60dd94242b3d18afb
4
- data.tar.gz: c171edba81332ad784c6635b8da5559639b661bdde46aa8a93a650dfa6ba287e
3
+ metadata.gz: bd01c089ded7b8ead8b6ffa8181e163e3a8f61c97afe11e63872c4e636975e6f
4
+ data.tar.gz: cf602d55174e1af3254ad3913adce154502438ce9f059d3518d7535ff24b8bc3
5
5
  SHA512:
6
- metadata.gz: fc08e1b6fd572e330c43ed60c6d9dcfb682643979a73d36a03b7db54e8b8fb046f1c8e2f3598d8af9ce7c5c420dee1c01406a1706e6d92f6275413e0eafee9c2
7
- data.tar.gz: 6cf6237140267cb6c626053b1c02be2fe58338a052e8bd952a80894849d12be704c76b6b05c5136bebccf679266ad8cb341302137df38f3d53582be578706175
6
+ metadata.gz: 6b0400c9fb410b3cb7927f092bf834bc2372e609d7c21c0b4ac3cb018481038acb3619be78d55a348e073591d101c1635ff9d9bcd45eb0e82b0cf00739717bd8
7
+ data.tar.gz: 23f54fb05274684eafad7b640b8304059dabffeef802fa276e7559e7b9084581e3dd568ab361d1b0954793a727518a80bc1bab954371812eb8d8a910e492cb4d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- formify (0.23.9)
4
+ formify (0.23.10)
5
5
  rails
6
6
  resonad
7
7
  with_advisory_lock
@@ -17,12 +17,9 @@ module Formify
17
17
  end
18
18
 
19
19
  def formify_redirect_to_with_flash(*args, **keywords)
20
- keywords.slice(formify_flash_keys).each do |k, v|
21
- flash[k] = v
22
- end
23
-
20
+ formify_set_flashes(keywords)
24
21
  Rails.logger.info "Redirecting to: #{args.first}"
25
-
22
+ flash[:danger] = "testing here"
26
23
  redirect_to(*args, **keywords.except(formify_flash_keys))
27
24
  end
28
25
 
@@ -52,6 +49,12 @@ module Formify
52
49
  &block
53
50
  )
54
51
  end
52
+
53
+ def formify_set_flashes(messages = {})
54
+ messages.slice(*formify_flash_keys).each do |k, v|
55
+ flash[k] = v
56
+ end
57
+ end
55
58
  end
56
59
  end
57
60
  end
@@ -1,3 +1,3 @@
1
1
  module Formify
2
- VERSION = '0.23.9'.freeze
2
+ VERSION = '0.23.10'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.9
4
+ version: 0.23.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Jackson