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 searched_by?(column)
        value = field_search_params[column.name.to_s]
        case value
        when Hash
          value['from'].present?
        when String
          value.present?
        else
          false
        end
      end
def searched_by? ( column ) value = field_search_params [ column . name . to_s ] case value when Hash value [ 'from' ] . present? when String value . present? else false end 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>