diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-15 15:57:44 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-15 15:57:44 +0000 |
commit | dc3d6eb9b4aaed051dd6d5a5a07f6c66b72da4c4 (patch) | |
tree | 1d77afa3e7a5af3d3d89c2121b5cecf6423d666d /actionpack/lib | |
parent | 45caae41c3fbfc7ba77c5e2dc70734fa80501828 (diff) | |
download | rails-dc3d6eb9b4aaed051dd6d5a5a07f6c66b72da4c4.tar.gz rails-dc3d6eb9b4aaed051dd6d5a5a07f6c66b72da4c4.tar.bz2 rails-dc3d6eb9b4aaed051dd6d5a5a07f6c66b72da4c4.zip |
Moved Active Support into its own gem
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rwxr-xr-x | actionpack/lib/action_controller.rb | 18 | ||||
-rwxr-xr-x | actionpack/lib/action_controller/base.rb | 6 |
2 files changed, 17 insertions, 7 deletions
diff --git a/actionpack/lib/action_controller.rb b/actionpack/lib/action_controller.rb index 8ed5fda595..30245e934a 100755 --- a/actionpack/lib/action_controller.rb +++ b/actionpack/lib/action_controller.rb @@ -23,10 +23,20 @@ $:.unshift(File.dirname(__FILE__)) -require 'action_controller/support/core_ext' -require 'action_controller/support/clean_logger' -require 'action_controller/support/misc' -require 'action_controller/support/dependencies' +begin + require 'active_support/core_ext' + require 'active_support/clean_logger' + require 'active_support/misc' + require 'active_support/dependencies' +rescue LoadError + require 'rubygems' + require_gem 'activesupport' + + require 'active_support/core_ext' + require 'active_support/clean_logger' + require 'active_support/misc' + require 'active_support/dependencies' +end require 'action_controller/base' require 'action_controller/rescue' diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 5d7ccf72f1..7883233e84 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -2,9 +2,9 @@ require 'action_controller/request' require 'action_controller/response' require 'action_controller/routing' require 'action_controller/url_rewriter' -require 'action_controller/support/class_attribute_accessors' -require 'action_controller/support/class_inheritable_attributes' -require 'action_controller/support/inflector' +require 'active_support/class_attribute_accessors' +require 'active_support/class_inheritable_attributes' +require 'active_support/inflector' require 'drb' module ActionController #:nodoc: |