Sha256: cfa3a705f85e1d80e58e1613bc49cc2d21109e067facb1f4b3f901ba98cd0a66

Contents?: true

Size: 520 Bytes

Versions: 8

Compression:

Stored size: 520 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

8 entries across 8 versions & 1 rubygems

Version Path
bhf-0.2.7 app/helpers/bhf/entries_helper.rb
bhf-0.2.6 app/helpers/bhf/entries_helper.rb
bhf-0.2.5 app/helpers/bhf/entries_helper.rb
bhf-0.2.4 app/helpers/bhf/entries_helper.rb
bhf-0.2.3 app/helpers/bhf/entries_helper.rb
bhf-0.2.2 app/helpers/bhf/entries_helper.rb
bhf-0.2.1 app/helpers/bhf/entries_helper.rb
bhf-0.2.0 app/helpers/bhf/entries_helper.rb