Sha256: a898b42d5796deb418d54b1be1f84020d8e249aea43d2207ddae7894efcd4d90
Contents?: true
Size: 457 Bytes
Versions: 3
Compression:
Stored size: 457 Bytes
Contents
module Puffer module Extensions module FormBuilder def puffer_field *args field = args.first.is_a?(Puffer::Field) ? args.first : Puffer::Field.new(*args) field.resource = object.class template = instance_variable_get :@template field.render template.controller, :form, :form => self, :record => object 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.32 | lib/puffer/extensions/form.rb |
puffer-0.0.31 | lib/puffer/extensions/form.rb |
puffer-0.0.30 | lib/puffer/extensions/form.rb |