Sha256: 8c6c6a3e2da547b1cbc87c02ca61cc1b447503c5e656b4936061792b781cdb97
Contents?: true
Size: 364 Bytes
Versions: 1
Compression:
Stored size: 364 Bytes
Contents
module Puffer module Extensions module FormBuilder def puffer_field *args field = args.first.is_a?(Puffer::Fields::Field) ? args.first : Puffer::Fields::Field.new(*args) field.resource = object.class field.input self end end end end ActionView::Helpers::FormBuilder.send :include, Puffer::Extensions::FormBuilder
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puffer-0.0.21 | lib/puffer/extensions/form.rb |