cerulean 0.12.1 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cerulean.rb +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec3595722e745f49ed704d375cc036472d59573a
|
4
|
+
data.tar.gz: 4b0c7543d2ad9969b6fe1c217e478bc87f26ca4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc0fb08883f716fd3d62d98c4cec422861650136feb954c1f50d6d8273a527ea1fa98a7e299399bcb566c332ba6cd310f1b5f8cc33b9efffef414af97f20e811
|
7
|
+
data.tar.gz: 40432915d3f83af14f1d2195fb8ca9115f538c32fe5869fefd49513edfefabc07e4430e2a01ec318140a818991aef5831b46ca1a664ca7fdf38590081a771e2b
|
data/lib/cerulean.rb
CHANGED
@@ -120,11 +120,14 @@ module Cerulean
|
|
120
120
|
|
121
121
|
before_action do
|
122
122
|
if meta.has_key?(:form)
|
123
|
+
p = params
|
124
|
+
p = p.permit! if params.respond_to?(:permit!)
|
125
|
+
|
123
126
|
if meta[:form].has_key?(:key) && meta[:form][:key]
|
124
|
-
|
125
|
-
else
|
126
|
-
@form = meta[:form][:klass].new(params)
|
127
|
+
p = params[meta[:form][:key]]
|
127
128
|
end
|
129
|
+
|
130
|
+
@form = meta[:form][:klass].new(p)
|
128
131
|
end
|
129
132
|
|
130
133
|
if meta.has_key?(:params)
|