roda-component 0.1.64 → 0.1.65
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 +1 -3
- 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: a0c512ecac4ecf7a3b0274e5c52becace09c1e69
|
4
|
+
data.tar.gz: d7171c6866fffed0dea124e208765b83cd3dd4e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3929aae6ee8227aa3bcdf06048cf179fccbd1a0c8c77e2babbd7ac7f5ae9d90f2c60a76ba73696b7a8db4835032780a809c72672072d66107a3720276c031e3
|
7
|
+
data.tar.gz: 70889b0ca0c6bf642535d3af62a77e3f359ce40f8c7d96ad858eb4a6fc95f86d436063772a380224f76ea27f506a186e75a33d1bf6eebf5996e433cef44521fd
|
data/lib/roda/component/form.rb
CHANGED
@@ -215,9 +215,7 @@ class Roda
|
|
215
215
|
d_options[:override_errors] = d_errors[key].first
|
216
216
|
|
217
217
|
display_errors d_options, &block
|
218
|
-
elsif block_given?
|
219
|
-
block.call(d_keys, error)
|
220
|
-
else
|
218
|
+
elsif !block_given? || block.call(d_keys, error) == false
|
221
219
|
name = d_keys.each_with_index.map do |field, i|
|
222
220
|
i != 0 ? "[#{field}]" : field
|
223
221
|
end.join
|
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.65
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|