wedge 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/wedge/plugins/render.rb +2 -1
- data/lib/wedge/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: 6319b8ff40538e70099e0bbfbb1b2a4ec6d5cb21
|
4
|
+
data.tar.gz: 63424550a8726f64bb1e9d7c77e12f2fb87c7d2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a268e488ae46aa8b897ea0bc119e5f4a4156e441df12f9bc8f2553c1907224449ba94f123432a32698f259db03002023c734cf28d027b031ad8ab132844f5df0
|
7
|
+
data.tar.gz: 590923f4e1b34a915fbb440c8b0def574c3205d34de7a3cab10c0a5a436b72606753e986b2d44e3d324fca674da8b1ab696d20052da4b6403e405ad8079e1646
|
data/lib/wedge/plugins/render.rb
CHANGED
@@ -10,6 +10,7 @@ class Wedge
|
|
10
10
|
end
|
11
11
|
|
12
12
|
keys = options.delete(:keys) || (_options[:key] ? [_options[:key]] : [])
|
13
|
+
options[:position] ||= :before
|
13
14
|
|
14
15
|
if extra_errors = options.delete(:errors)
|
15
16
|
extra_errors.each do |key, value|
|
@@ -44,7 +45,7 @@ class Wedge
|
|
44
45
|
field_error_dom.html _error_name(key, error.first)
|
45
46
|
|
46
47
|
field = dom.find("[name='#{name}']")
|
47
|
-
field.
|
48
|
+
field.send(options[:position], field_error_dom.dom)
|
48
49
|
end
|
49
50
|
end
|
50
51
|
end
|
data/lib/wedge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wedge
|
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-
|
11
|
+
date: 2015-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal-wedge
|