wedge 0.1.61 → 0.1.62
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/validations.rb +2 -2
- data/lib/wedge/plugins/form.rb +4 -4
- 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: adaaf3ee60806692e368341ef45da7729b50d8a4
|
4
|
+
data.tar.gz: c4c323f0e0fb5080bbaa62671c6e4483f11596d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a79d5039c3d11deccd285f13e093192a1a85a31639c85cfee554e7b4eeb8789eee759c4144d5fb3e226e6168bc263e1327528f05a8957e3f3251398ccc89ac94
|
7
|
+
data.tar.gz: 0e9597a27d5a60c75db692af969c34589629ed7c529d793f2c7aa5e6337259df0d53807070d96150d209cb4a1187d5c3554d4f4963aae421eb00c54926d0742e
|
data/lib/wedge/plugins/form.rb
CHANGED
@@ -263,15 +263,15 @@ class Wedge
|
|
263
263
|
# post = Post.new(edit.attributes)
|
264
264
|
# post.save
|
265
265
|
def initialize(atts = {}, options = {})
|
266
|
-
_set_atts atts, options
|
267
|
-
end
|
268
|
-
|
269
|
-
def _set_atts atts, options = {}
|
270
266
|
atts = atts.deep_dup
|
271
267
|
@_options = options.indifferent
|
272
268
|
@_atts = Atts.new atts, _accessors, _aliases, _accessor_options
|
273
269
|
@_atts = @_atts.set_defaults self
|
274
270
|
|
271
|
+
_set_atts atts
|
272
|
+
end
|
273
|
+
|
274
|
+
def _set_atts atts
|
275
275
|
atts.each do |key, val|
|
276
276
|
# grab the original key if alias is given
|
277
277
|
_atts_keys << (key = _aliases.invert[key] || key)
|
data/lib/wedge/version.rb
CHANGED