Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Always pull in version for frameworks (standardize autoload / require…

… / none)
  • Loading branch information...
commit cc8e386d08d83ca1ad0c5da863f588b4c4fbe62c 1 parent de05e1c
Yehuda Katz wycats authored
1  actionmailer/lib/action_mailer.rb
View
@@ -26,6 +26,7 @@
require 'abstract_controller'
require 'action_view'
+require 'action_mailer/version'
# Common Active Support usage in Action Mailer
require 'active_support/core_ext/class'
3  activemodel/lib/active_model.rb
View
@@ -24,7 +24,7 @@
activesupport_path = File.expand_path('../../../activesupport/lib', __FILE__)
$:.unshift(activesupport_path) if File.directory?(activesupport_path) && !$:.include?(activesupport_path)
require 'active_support'
-
+require 'active_model/version'
module ActiveModel
extend ActiveSupport::Autoload
@@ -45,7 +45,6 @@ module ActiveModel
autoload :Serialization
autoload :TestCase
autoload :Translation
- autoload :VERSION
autoload :Validations
autoload :Validator
4 activerecord/lib/active_record.rb
View
@@ -33,12 +33,12 @@
require 'active_model'
require 'arel'
+require 'active_record/version'
+
module ActiveRecord
extend ActiveSupport::Autoload
eager_autoload do
- autoload :VERSION
-
autoload :ActiveRecordError, 'active_record/errors'
autoload :ConnectionNotEstablished, 'active_record/errors'
1  activeresource/lib/active_resource.rb
View
@@ -29,6 +29,7 @@
require 'active_support'
require 'active_model'
+require 'active_resource/version'
module ActiveResource
extend ActiveSupport::Autoload
2  activesupport/lib/active_support.rb
View
@@ -35,6 +35,7 @@ def load_all!; load_all_hooks.each { |hook| hook.call } end
end
require "active_support/dependencies/autoload"
+require "active_support/version"
module ActiveSupport
extend ActiveSupport::Autoload
@@ -43,7 +44,6 @@ module ActiveSupport
autoload :FileUpdateChecker
autoload :LogSubscriber
autoload :Notifications
- autoload :VERSION
# TODO: Narrow this list down
eager_autoload do
Please sign in to comment.
Something went wrong with that request. Please try again.