Module: ActiveInteraction::Extras::FilterExtensions::TimezoneSupport
- Defined in:
- lib/active_interaction/extras/filter_extensions/timezone_support.rb
Overview
Instance Method Summary collapse
Instance Method Details
#convert_string(value) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/active_interaction/extras/filter_extensions/timezone_support.rb', line 6 def convert_string(value) if time_with_zone? Time.zone.parse(value) || raise(ArgumentError, "no time information in #{value.inspect}") else super end end |