Method: AdminAssistant::Column::FormViewMethods#html
- Defined in:
- lib/admin_assistant/column.rb
#html(rails_form) ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/admin_assistant/column.rb', line 55 def html(rails_form) record = rails_form.object hff = render_from_custom_template "_#{name}_input", rails_form hff ||= html_from_helper_method(record) hff ||= if @read_only value record elsif @write_once && @action_view.action_name == 'edit' value record else default_html rails_form end if ah = after_html(rails_form) hff << ah end hff end |