Class: Basepack::Forms::Fields::SingleAssociation
- Defined in:
- lib/basepack/forms/fields/single_association.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#association?, #bulk_editable?, #configure_nested_form, #copy, #enum_options, #initialize, #inverse_of_nested_in?, #nested_label, #nform, #parse_input, #unique?, #update_attributes, #value, #view
Constructor Details
This class inherits a constructor from Basepack::Forms::Fields::Base
Instance Method Details
#build_resource ⇒ Object
25 26 27 |
# File 'lib/basepack/forms/fields/single_association.rb', line 25 def build_resource value || form.resource.send("build_#{name}") end |