diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-12-14 15:36:59 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-12-14 15:36:59 +0000 |
commit | e2952d3e5fc44c997c15ca3e5a1c0229ee1019c0 (patch) | |
tree | 983c8bec504fc4df4f301f5ffdba2ca51cc8ce4b /vendor | |
parent | 040d0a32d2be94736a5419d608dfec2bb37b2bc8 (diff) | |
download | redmine-e2952d3e5fc44c997c15ca3e5a1c0229ee1019c0.tar.gz redmine-e2952d3e5fc44c997c15ca3e5a1c0229ee1019c0.zip |
Rails 2.1.2 deprecations (#2332).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2134 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/plugins/actionwebservice/init.rb | 2 | ||||
-rw-r--r-- | vendor/plugins/classic_pagination/lib/pagination.rb | 4 | ||||
-rw-r--r-- | vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/vendor/plugins/actionwebservice/init.rb b/vendor/plugins/actionwebservice/init.rb index ade118c0f..32d6ea11a 100644 --- a/vendor/plugins/actionwebservice/init.rb +++ b/vendor/plugins/actionwebservice/init.rb @@ -1,7 +1,7 @@ require 'action_web_service' # These need to be in the load path for action_web_service to work -Dependencies.load_paths += ["#{RAILS_ROOT}/app/apis"] +ActiveSupport::Dependencies.load_paths += ["#{RAILS_ROOT}/app/apis"] # AWS Test helpers require 'action_web_service/test_invoke' if ENV['RAILS_ENV'] && ENV['RAILS_ENV'] =~ /^test/ diff --git a/vendor/plugins/classic_pagination/lib/pagination.rb b/vendor/plugins/classic_pagination/lib/pagination.rb index b6e9cf4bc..6a3e1a97b 100644 --- a/vendor/plugins/classic_pagination/lib/pagination.rb +++ b/vendor/plugins/classic_pagination/lib/pagination.rb @@ -97,8 +97,8 @@ module ActionController "Unknown options: #{unknown_option_keys.join(', ')}" unless unknown_option_keys.empty? - options[:singular_name] ||= Inflector.singularize(collection_id.to_s) - options[:class_name] ||= Inflector.camelize(options[:singular_name]) + options[:singular_name] ||= ActiveSupport::Inflector.singularize(collection_id.to_s) + options[:class_name] ||= ActiveSupport::Inflector.camelize(options[:singular_name]) end # Returns a paginator and a collection of Active Record model instances diff --git a/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb b/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb index 82ecaa880..05ba0eb58 100644 --- a/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb +++ b/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb @@ -140,4 +140,4 @@ module Engines::RailsExtensions::Dependencies end end -Dependencies.send :include, Engines::RailsExtensions::Dependencies +ActiveSupport::Dependencies.send :include, Engines::RailsExtensions::Dependencies |