Class: ActiveInteraction::TimeFilter
- Inherits:
-
AbstractDateTimeFilter
- Object
- Filter
- AbstractDateTimeFilter
- ActiveInteraction::TimeFilter
- Defined in:
- lib/active_interaction/filters/time_filter.rb
Instance Attribute Summary
Attributes inherited from Filter
Instance Method Summary collapse
- #database_column_type ⇒ Object
-
#initialize(name, options = {}, &block) ⇒ TimeFilter
constructor
A new instance of TimeFilter.
Methods inherited from AbstractDateTimeFilter
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.
26 27 28 29 30 |
# File 'lib/active_interaction/filters/time_filter.rb', line 26 def initialize(name, = {}, &block) raise InvalidFilterError, 'format option unsupported with time zones' if .key?(:format) && time_with_zone? super end |
Instance Method Details
#database_column_type ⇒ Object
32 33 34 |
# File 'lib/active_interaction/filters/time_filter.rb', line 32 def database_column_type :datetime end |