lib/active_scaffold/helpers/search_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_search_range_comparator_options(column)
        select_options = ActiveScaffold::Finder::NUMERIC_COMPARATORS.collect { |comp| [as_(comp.downcase.to_sym), comp] }
        if active_scaffold_search_range_string?(column)
          comparators = ActiveScaffold::Finder::STRING_COMPARATORS.collect { |title, comp| [as_(title), comp] }
          select_options.unshift(*comparators)
        end
        if include_null_comparators? column
          select_options.concat(ActiveScaffold::Finder::NULL_COMPARATORS.collect { |comp| [as_(comp), comp] })
        end
        select_options
      end
def active_scaffold_search_range_comparator_options ( column ) select_options = ActiveScaffold :: Finder :: NUMERIC_COMPARATORS . collect { | comp | [ as_ ( comp . downcase . to_sym ) , comp ] } if active_scaffold_search_range_string? ( column ) comparators = ActiveScaffold :: Finder :: STRING_COMPARATORS . collect { | title , comp | [ as_ ( title ) , comp ] } select_options . unshift ( * comparators ) end if include_null_comparators? column select_options . concat ( ActiveScaffold :: Finder :: NULL_COMPARATORS . collect { | comp | [ as_ ( comp ) , comp ] } ) end select_options end
This method decides which input to use for the given column.
This method decides which input to use for the given column .
column
<not_specific>