Class: ActiveInteraction::TimeFilter

Inherits:
AbstractDateTimeFilter show all
Defined in:
lib/active_interaction/filters/time_filter.rb

Instance Attribute Summary

Attributes inherited from Filter

#filters, #name, #options

Instance Method Summary collapse

Methods inherited from AbstractDateTimeFilter

#accepts_grouped_inputs?

Methods inherited from Filter

#accepts_grouped_inputs?, #default, #default?, #desc, factory, #process

Constructor Details

#initialize(name, options = {}, &block) ⇒ TimeFilter

Returns a new instance of TimeFilter.

Raises:



26
27
28
29
30
# File 'lib/active_interaction/filters/time_filter.rb', line 26

def initialize(name, options = {}, &block)
  raise InvalidFilterError, 'format option unsupported with time zones' if options.key?(:format) && time_with_zone?

  super
end

Instance Method Details

#database_column_typeObject



32
33
34
# File 'lib/active_interaction/filters/time_filter.rb', line 32

def database_column_type
  :datetime
end