diff options
author | Xavier Noria <fxn@hashref.com> | 2016-08-06 18:38:02 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-08-06 18:38:02 +0200 |
commit | 18a2513729ab90b04b1c86963e7d5b9213270c81 (patch) | |
tree | 6e9a7bca134f5c98e291dbc694464d6a57a27f6a /activemodel/lib/active_model/type/time.rb | |
parent | 9617db2078e8a85c8944392c21dd748f932bbd80 (diff) | |
download | rails-18a2513729ab90b04b1c86963e7d5b9213270c81.tar.gz rails-18a2513729ab90b04b1c86963e7d5b9213270c81.tar.bz2 rails-18a2513729ab90b04b1c86963e7d5b9213270c81.zip |
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.
Diffstat (limited to 'activemodel/lib/active_model/type/time.rb')
-rw-r--r-- | activemodel/lib/active_model/type/time.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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}" |