wedge 0.1.21 → 0.1.22
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/form.rb +5 -2
- data/lib/wedge/version.rb +1 -1
- 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: 662e81aba05a015d63b468017ec5706974ee8609
|
4
|
+
data.tar.gz: ee86bce9bb3950e77bbdd89056a246630b8ba470
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 000e0d5c29b6cb4c3dc0607bc18b0c6ffd06d7a1a1caa8c0c2afd9b12a1ea8678f976163138821f33d86d131212caa02dbb68b432b074da6d9a233630f6c5dde
|
7
|
+
data.tar.gz: ca112e7ccca556b165b68a74e76d7a2f021db4bb8beb8c1f5461c7171e0937c26ba33544ab67d91e527784c7687cc757cb0f9e1381bf1bf979fe4981925c2a65
|
data/lib/wedge/plugins/form.rb
CHANGED
@@ -245,8 +245,7 @@ class Wedge
|
|
245
245
|
|
246
246
|
atts.each do |key, val|
|
247
247
|
# grab the original key if alias is given
|
248
|
-
key = _aliases.invert[key] || key
|
249
|
-
(@_atts_keys ||= []) << key
|
248
|
+
_atts_keys << (key = _aliases.invert[key] || key)
|
250
249
|
|
251
250
|
next if (_accessor_options[key] || {})[:form]
|
252
251
|
|
@@ -258,6 +257,10 @@ class Wedge
|
|
258
257
|
end
|
259
258
|
end
|
260
259
|
|
260
|
+
def _atts_keys
|
261
|
+
@_atts_keys ||= []
|
262
|
+
end
|
263
|
+
|
261
264
|
def _with_atts
|
262
265
|
_accessor_options[:with_atts] || []
|
263
266
|
end
|
data/lib/wedge/version.rb
CHANGED