Method: ActiveScaffold::Finder::ClassMethods#datetime_conversion_for_condition

Defined in:
lib/active_scaffold/finder.rb

#datetime_conversion_for_condition(column) ⇒ Object



355
356
357
358
359
360
361
# File 'lib/active_scaffold/finder.rb', line 355

def datetime_conversion_for_condition(column)
  if column.column
    column.column_type == :date ? :to_date : :to_time
  else
    :to_time
  end
end