From 18a2513729ab90b04b1c86963e7d5b9213270c81 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sat, 6 Aug 2016 18:38:02 +0200 Subject: applies new string literal convention in activemodel/lib The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. --- activemodel/lib/active_model/type/time.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel/lib/active_model/type/time.rb') diff --git a/activemodel/lib/active_model/type/time.rb b/activemodel/lib/active_model/type/time.rb index 08d127d187..5a7851ba29 100644 --- a/activemodel/lib/active_model/type/time.rb +++ b/activemodel/lib/active_model/type/time.rb @@ -29,7 +29,7 @@ module ActiveModel return value unless value.is_a?(::String) return if value.empty? - if value.start_with?('2000-01-01') + if value.start_with?("2000-01-01") dummy_time_value = value else dummy_time_value = "2000-01-01 #{value}" -- cgit v1.2.3