lib/active_scaffold/helpers/update_column_helpers.rb
# This method decides which input to use for the given column.
# It does not do any rendering. It only decides which method is responsible for rendering.
This method decides which input to use for the given column.
It does not do any rendering. It only decides which method is responsible for rendering.
This method decides which input to use for the given column . It does not do any rendering . It only decides which method is responsible for rendering .
def active_scaffold_update_for(column, scope = nil, options = {})
        options = active_scaffold_input_options(column, scope, options)
        if override_update_field?(column)
          send(override_update_field(column), @record, options)
        elsif column.form_ui and override_update?(column.form_ui)
          send(override_update(column.form_ui), column, options)
       elsif column.column && column.form_ui.nil? && override_update?(column.column.type)
          send(override_update(column.column.type), column, options)
        else
          active_scaffold_update_generic_operators_select(column, options)<< ' ' << active_scaffold_render_input(column, options.merge(:name => "record[#{column.name}][value]"))
        end
      end
def active_scaffold_update_for ( column , scope = nil , options = { } ) options = active_scaffold_input_options ( column , scope , options ) if override_update_field? ( column ) send ( override_update_field ( column ) , @record , options ) elsif column . form_ui and override_update? ( column . form_ui ) send ( override_update ( column . form_ui ) , column , options ) elsif column . column && column . form_ui . nil? && override_update? ( column . column . type ) send ( override_update ( column . column . type ) , column , options ) else active_scaffold_update_generic_operators_select ( column , options ) << ' ' << active_scaffold_render_input ( column , options . merge ( :name => "record[#{column.name}][value]" ) ) end end
This method decides which input to use for the given column.
This method decides which input to use for the given column .
# first, check if the dev has created an override for this specific field for search # second, check if the dev has specified a valid form_ui for this column, using specific ui for searches
column
<not_specific>
scope
<not_specific>
options
<not_specific>