Sha256: 9ac425c782b1d8002e39d50671c3f3d1348a37c898db7f1574fccd5d118ccda5
Contents?: true
Size: 453 Bytes
Versions: 3
Compression:
Stored size: 453 Bytes
Contents
module Puffer module Extensions module FormBuilder def puffer_field *args field = if args.first.is_a? Puffer::Fields::Field args.first else Puffer::Fields::Field.new object.class, *args end 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.15 | lib/puffer/extensions/form.rb |
puffer-0.0.14 | lib/puffer/extensions/form.rb |
puffer-0.0.13 | lib/puffer/extensions/form.rb |