formify 0.23.6 → 0.23.7
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 +7 -0
- 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: 62c0e47b4cfc7c10abfd87ec1ed66646acda42c83ccf7b1cbf104e6677ac32cf
|
4
|
+
data.tar.gz: f11c13dfc2d661d076c546f13a4dc41fcf9944837994f14a47861b5658e71a7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85e4cb00e546956b34ff6d79ed035baf0a06b243a8ee74f9e5e9655978688d7fe5a7f0c8085cba3a384ee6b51b154fdad54c1b486148233db576b36b84f90f64
|
7
|
+
data.tar.gz: ca48cadd7c79cfc5783a5a20a2bc888f2f4110f4d6eee209bc55ddfd14ff800d5255bfe73efceafc59fe994a031d7967ef0b52800aaefe007cc26eebb998ab97
|
data/Gemfile.lock
CHANGED
@@ -5,6 +5,13 @@ module Formify
|
|
5
5
|
extend ActiveSupport::Concern
|
6
6
|
|
7
7
|
included do
|
8
|
+
def formify_params(root, *permitted)
|
9
|
+
params
|
10
|
+
.permit(
|
11
|
+
root => permitted
|
12
|
+
)[root]
|
13
|
+
end
|
14
|
+
|
8
15
|
def redirect_to_with_flash(*args, **keywords)
|
9
16
|
keywords.slice(%i[danger info success]).each do |k, v|
|
10
17
|
flash[k] = v
|
data/lib/formify/version.rb
CHANGED