Class: ActiveRecord::ConnectionAdapters::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/time_of_day/ext/active_record.rb

Class Method Summary collapse

Class Method Details

.string_to_dummy_time_with_time_of_day(string) ⇒ Object



8
9
10
11
# File 'lib/time_of_day/ext/active_record.rb', line 8

def string_to_dummy_time_with_time_of_day(string)
  t = string_to_dummy_time_without_time_of_day(string)
  t.respond_to?(:time_of_day) ? t.time_of_day : t
end