Sha256: 89c5d43b179efa080257011120587990d937406ef209cf539ce02184f6fdf8e7
Contents?: true
Size: 521 Bytes
Versions: 7
Compression:
Stored size: 521 Bytes
Contents
module Bhf module EntriesHelper def node(f, field, &block) render :partial => 'bhf/helper/node', :locals => {:f => f, :field => field, :input => with_output_buffer(&block)} end def reflection_node(f, field, &block) return if field.form_type === :static && f.object.new_record? && f.object.send(field.reflection.name).blank? render :partial => 'bhf/helper/reflection_node', :locals => { :f => f, :field => field, :input => with_output_buffer(&block) } end end end
Version data entries
7 entries across 7 versions & 1 rubygems