diff --git a/config/initializers/as_to_time.rb b/config/initializers/as_to_time.rb deleted file mode 100644 index f75513d4abf..00000000000 --- a/config/initializers/as_to_time.rb +++ /dev/null @@ -1,17 +0,0 @@ -require 'active_support/core_ext/string/conversions' -require 'active_support/deprecation' - -class String - alias_method :old_to_time, :to_time - - OBJ = Object.new - - def to_time(form = OBJ) - if form == OBJ - ActiveSupport::Deprecation.warn("Rails 4 changes the default of String#to_time to local. Please pass the type of conversion you want, like to_time(:utc) or to_time(:local)", caller.drop(1)) - old_to_time(:utc) - else - old_to_time(form) - end - end -end