Permalink
Browse files

revises requires of some AS deprecation files

  • Loading branch information...
1 parent 8927987 commit 29089bf6faeb496f0cb7d439b848bc6ee4f40e9e @fxn fxn committed Apr 5, 2012
@@ -1,4 +1,4 @@
-require 'active_support/deprecation'
+require 'active_support/deprecation/method_wrappers'
class Module
# Declare that a method has been deprecated.
@@ -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'
@@ -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

0 comments on commit 29089bf

Please sign in to comment.