Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

revises requires of some AS deprecation files

  • Loading branch information...
commit 29089bf6faeb496f0cb7d439b848bc6ee4f40e9e 1 parent 8927987
@fxn fxn authored
View
2  activesupport/lib/active_support/core_ext/module/deprecation.rb
@@ -1,4 +1,4 @@
-require 'active_support/deprecation'
+require 'active_support/deprecation/method_wrappers'
class Module
# Declare that a method has been deprecated.
View
1  activesupport/lib/active_support/deprecation.rb
@@ -1,3 +1,4 @@
+require 'active_support/core_ext/module/deprecation'
require 'active_support/deprecation/behaviors'
require 'active_support/deprecation/reporting'
require 'active_support/deprecation/method_wrappers'
View
4 activesupport/lib/active_support/deprecation/method_wrappers.rb
@@ -2,9 +2,9 @@
require 'active_support/core_ext/array/extract_options'
module ActiveSupport
- class << Deprecation
+ module Deprecation
# Declare that a method has been deprecated.
- def deprecate_methods(target_module, *method_names)
+ def self.deprecate_methods(target_module, *method_names)
options = method_names.extract_options!
method_names += options.keys
Please sign in to comment.
Something went wrong with that request. Please try again.