lib/puffer/extensions/form.rb in puffer-0.0.15 vs lib/puffer/extensions/form.rb in puffer-0.0.16

- old
+ new

@@ -4,11 +4,13 @@ def puffer_field *args field = if args.first.is_a? Puffer::Fields::Field args.first else - Puffer::Fields::Field.new object.class, *args + options = args.extract_options! + Puffer::Fields::Field.new args, options end + field.resource = object.class input = Puffer::Inputs.map_field field input.new(self, @template, field).render end end