5 lines
328 B
Plaintext
5 lines
328 B
Plaintext
- field.target.constantize.reload_parent! # to make sure all the contents from the parent are loaded
|
|
|
|
= form.input field._alias.to_sym, :label => field.label, :hint => field.hint, :input_html => { :class => 'has_one' }, :as => :select, :collection => options_for_has_one(field, form.object.send(field._alias.to_sym).try(:_id))
|
|
|