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

Version Path
bhf-0.1.6 app/helpers/bhf/entries_helper.rb
bhf-0.1.5 app/helpers/bhf/entries_helper.rb
bhf-0.1.4 app/helpers/bhf/entries_helper.rb
bhf-0.1.3 app/helpers/bhf/entries_helper.rb
bhf-0.1.2 app/helpers/bhf/entries_helper.rb
bhf-0.1.1 app/helpers/bhf/entries_helper.rb
bhf-0.1.0 app/helpers/bhf/entries_helper.rb