lib/pr/form.rb in pr-0.0.3 vs lib/pr/form.rb in pr-0.0.4
- old
+ new
@@ -8,11 +8,11 @@
module DSL
def field name, type, options = {}
PR::DefineAndRegister[ self, name, type, options ]
end
- def from_hash hash
- form = new
+ def from_hash hash, *args
+ form = new *args
PR::BuildFromHash[ form, hash ]
form
end
def from_model model
PR::BuildFromModel[ self, model ]