lib/active_support.rb in activesupport-3.1.0.rc1 vs lib/active_support.rb in activesupport-3.1.0.rc2

- old
+ new

@@ -19,19 +19,21 @@ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #++ +require 'securerandom' + module ActiveSupport class << self attr_accessor :load_all_hooks def on_load_all(&hook) load_all_hooks << hook end def load_all!; load_all_hooks.each { |hook| hook.call } end end self.load_all_hooks = [] on_load_all do - [Dependencies, Deprecation, Gzip, MessageVerifier, Multibyte, SecureRandom] + [Dependencies, Deprecation, Gzip, MessageVerifier, Multibyte] end end require "active_support/dependencies/autoload" require "active_support/version"