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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/formify/controller_helpers.rb +8 -5
- data/lib/formify/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd01c089ded7b8ead8b6ffa8181e163e3a8f61c97afe11e63872c4e636975e6f
|
4
|
+
data.tar.gz: cf602d55174e1af3254ad3913adce154502438ce9f059d3518d7535ff24b8bc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b0400c9fb410b3cb7927f092bf834bc2372e609d7c21c0b4ac3cb018481038acb3619be78d55a348e073591d101c1635ff9d9bcd45eb0e82b0cf00739717bd8
|
7
|
+
data.tar.gz: 23f54fb05274684eafad7b640b8304059dabffeef802fa276e7559e7b9084581e3dd568ab361d1b0954793a727518a80bc1bab954371812eb8d8a910e492cb4d
|
data/Gemfile.lock
CHANGED
@@ -17,12 +17,9 @@ module Formify
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def formify_redirect_to_with_flash(*args, **keywords)
|
20
|
-
keywords
|
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
|
data/lib/formify/version.rb
CHANGED