Skip to content

Commit

Permalink
Merge pull request rails#5500 from panthomakos/load-all
Browse files Browse the repository at this point in the history
Removed ActiveSupport#load_all!
  • Loading branch information
NZKoz committed May 8, 2012
2 parents 4d0e6db + 0f8f99b commit c52ba1b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
15 changes: 1 addition & 14 deletions activesupport/lib/active_support.rb
Expand Up @@ -22,20 +22,6 @@
#++

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]
end
end

require "active_support/dependencies/autoload"
require "active_support/version"
require "active_support/logger"
Expand All @@ -44,6 +30,7 @@ module ActiveSupport
extend ActiveSupport::Autoload

autoload :Concern
autoload :Dependencies
autoload :DescendantsTracker
autoload :FileUpdateChecker
autoload :LogSubscriber
Expand Down
4 changes: 0 additions & 4 deletions activesupport/lib/active_support/time.rb
Expand Up @@ -4,10 +4,6 @@ module ActiveSupport
autoload :Duration, 'active_support/duration'
autoload :TimeWithZone, 'active_support/time_with_zone'
autoload :TimeZone, 'active_support/values/time_zone'

on_load_all do
[Duration, TimeWithZone, TimeZone]
end
end

require 'date'
Expand Down

0 comments on commit c52ba1b

Please sign in to comment.