Class: Arbre::Rails::Forms::FieldsForProxy

Inherits:
FormBuilderProxy show all
Defined in:
lib/arbre/rails/forms.rb

Instance Attribute Summary

Attributes inherited from FormBuilderProxy

#form_builder

Instance Method Summary collapse

Methods inherited from FormBuilderProxy

#label, #respond_to_missing?, #select

Methods inherited from Component

#tag_name

Instance Method Details

#build(form_builder, *args, &block) ⇒ Object



75
76
77
78
79
80
81
# File 'lib/arbre/rails/forms.rb', line 75

def build(form_builder, *args, &block)
  form_builder.fields_for(*args) do |f|
    @form_builder = f
  end

  super(&block)
end

#to_sObject



83
84
85
# File 'lib/arbre/rails/forms.rb', line 83

def to_s
  children.to_s
end