lib/active_scaffold/bridges/record_select/helpers.rb
# requires RecordSelect plugin to be installed and configured.
requires RecordSelect plugin to be installed and configured.
requires RecordSelect plugin to be installed and configured .
def active_scaffold_input_record_select(column, options)
        record = options.delete(:object)
        if column.association&.singular?
          multiple = column.options.dig(:html_options, :multiple)
          html = active_scaffold_record_select(record, column, options, record.send(column.name), multiple)
          html << active_scaffold_new_record_subform(column, record, options) if column.options[:add_new]
          html
        elsif column.association&.collection?
          active_scaffold_record_select(record, column, options, record.send(column.name), true)
        else
          active_scaffold_record_select_autocomplete(record, column, options)
        end
      end
def active_scaffold_input_record_select ( column , options ) record = options . delete ( :object ) if column . association &. singular? multiple = column . options . dig ( :html_options , :multiple ) html = active_scaffold_record_select ( record , column , options , record . send ( column . name ) , multiple ) html << active_scaffold_new_record_subform ( column , record , options ) if column . options [ :add_new ] html elsif column . association &. collection? active_scaffold_record_select ( record , column , options , record . send ( column . name ) , true ) else active_scaffold_record_select_autocomplete ( record , column , options ) end end
requires RecordSelect plugin to be installed and configured.
requires RecordSelect plugin to be installed and configured .
column
<not_specific>
options
<not_specific>