Skip to content
Browse files

Converting the object directly with !.

It makes no sense using just time_of_day...
  • Loading branch information...
1 parent b255f3e commit cd41c3491fc82668ced55db177dc12bc1aa33252 @lailsonbm committed Jun 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/time_of_day/ext/active_record.rb
View
2 lib/time_of_day/ext/active_record.rb
@@ -6,7 +6,7 @@ module ConnectionAdapters
class Column
class << self
def string_to_dummy_time_with_time_of_day(string)
- string_to_dummy_time_without_time_of_day(string).time_of_day
+ string_to_dummy_time_without_time_of_day(string).time_of_day!
end
alias_method_chain :string_to_dummy_time, :time_of_day
end

0 comments on commit cd41c34

Please sign in to comment.
Something went wrong with that request. Please try again.