Sha256: e3b2472e420a7830ce3a319e1f246c337818e13e7c24e69920461f94a03b4c08
Contents?: true
Size: 527 Bytes
Versions: 3
Compression:
Stored size: 527 Bytes
Contents
module Puffer module Extensions module FormBuilder def puffer_field *args field = if args.first.is_a? Puffer::Fields::Field args.first else 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 end end ActionView::Helpers::FormBuilder.send :include, Puffer::Extensions::FormBuilder
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puffer-0.0.18 | lib/puffer/extensions/form.rb |
puffer-0.0.17 | lib/puffer/extensions/form.rb |
puffer-0.0.16 | lib/puffer/extensions/form.rb |