roda-component 0.1.41 → 0.1.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roda/component/form.rb +6 -6
- data/lib/roda/component/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 157e0338814cd82f0ce49eaa75810ca4781da116
|
4
|
+
data.tar.gz: 8bc1c85b5d02b0cce611552f6eb46ffeb9634700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d82750d6fe41bdccc366a8a72dbc240e3ec6f10a66a2d091aba4af75d706581df3f3abaad54e9dae993952d203e691055583ec900fcb3ff123ca2a0ceddc6ae1
|
7
|
+
data.tar.gz: 82ecdd4090365b39b368a7c7daf40af0ad85b423267d2abb42fa259ebd2a2c7fa045ea3432d550d1b6319350228998ff62cbaf4badaace559a3296ecb81a78c9
|
data/lib/roda/component/form.rb
CHANGED
@@ -157,14 +157,14 @@ class Roda
|
|
157
157
|
|
158
158
|
data.each do |k, v|
|
159
159
|
if klass = _form[k.to_s.to_sym]
|
160
|
-
|
161
|
-
|
160
|
+
d = data[k]
|
161
|
+
d = d.attributes if d.is_a?(Form)
|
162
162
|
|
163
|
-
f
|
164
|
-
k
|
165
|
-
|
163
|
+
f = klass.new d
|
164
|
+
k = "#{k}_attributes"
|
165
|
+
dt = f.model_attributes
|
166
166
|
|
167
|
-
hash[k] = model_attributes
|
167
|
+
hash[k] = model_attributes dt
|
168
168
|
elsif v.is_a? Hash
|
169
169
|
hash[k] = model_attributes data[k]
|
170
170
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roda-component
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|