lib/active_support.rb in activesupport-4.2.11.3 vs lib/active_support.rb in activesupport-5.0.0.beta1

- old
+ new

@@ -1,7 +1,7 @@ #-- -# Copyright (c) 2005-2014 David Heinemeier Hansson +# Copyright (c) 2005-2015 David Heinemeier Hansson # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, @@ -24,19 +24,19 @@ require 'securerandom' require "active_support/dependencies/autoload" require "active_support/version" require "active_support/logger" require "active_support/lazy_load_hooks" -require "active_support/core_ext/date_and_time/compatibility" module ActiveSupport extend ActiveSupport::Autoload autoload :Concern autoload :Dependencies autoload :DescendantsTracker autoload :FileUpdateChecker + autoload :EventedFileUpdateChecker autoload :LogSubscriber autoload :Notifications eager_autoload do autoload :BacktraceCleaner @@ -58,10 +58,11 @@ autoload :OrderedHash autoload :OrderedOptions autoload :StringInquirer autoload :TaggedLogging autoload :XmlMini + autoload :ArrayInquirer end autoload :Rescuable autoload :SafeBuffer, "active_support/core_ext/string/output_safety" autoload :TestCase @@ -70,25 +71,17 @@ super NumberHelper.eager_load! end - @@test_order = nil + cattr_accessor :test_order # :nodoc: - def self.test_order=(new_order) # :nodoc: - @@test_order = new_order + def self.halt_callback_chains_on_return_false + Callbacks.halt_and_display_warning_on_return_false end - def self.test_order # :nodoc: - @@test_order - end - - def self.to_time_preserves_timezone - DateAndTime::Compatibility.preserve_timezone - end - - def self.to_time_preserves_timezone=(value) - DateAndTime::Compatibility.preserve_timezone = value + def self.halt_callback_chains_on_return_false=(value) + Callbacks.halt_and_display_warning_on_return_false = value end end autoload :I18n, "active_support/i18n"