diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-04 08:28:44 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-04 08:28:44 +0000 |
commit | 668c64b48d6343f166a4f21cff79337558097c39 (patch) | |
tree | 17a0cd70eeb025afb22a713c313cac4024345ff9 /activesupport | |
parent | e2a397ff8a5e58cdd40663342d0256ffd3c6324a (diff) | |
download | rails-668c64b48d6343f166a4f21cff79337558097c39.tar.gz rails-668c64b48d6343f166a4f21cff79337558097c39.tar.bz2 rails-668c64b48d6343f166a4f21cff79337558097c39.zip |
quell warnings
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4982 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport')
-rwxr-xr-x | activesupport/lib/active_support/breakpoint.rb | 5 | ||||
-rw-r--r-- | activesupport/lib/active_support/deprecation.rb | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/breakpoint.rb b/activesupport/lib/active_support/breakpoint.rb index 785dac7596..8207117ced 100755 --- a/activesupport/lib/active_support/breakpoint.rb +++ b/activesupport/lib/active_support/breakpoint.rb @@ -460,6 +460,11 @@ module IRB #:nodoc: old_CurrentContext
end
end
+
+ class << self
+ alias :old_parse_opts :parse_opts
+ remove_method :parse_opts
+ end
def IRB.parse_opts() end
class Context #:nodoc:
diff --git a/activesupport/lib/active_support/deprecation.rb b/activesupport/lib/active_support/deprecation.rb index 845fb4d62b..22ff90642a 100644 --- a/activesupport/lib/active_support/deprecation.rb +++ b/activesupport/lib/active_support/deprecation.rb @@ -65,6 +65,9 @@ module ActiveSupport mattr_accessor :behavior self.behavior = default_behavior + # Warnings are not silenced by default. + self.silenced = false + module ClassMethods # Declare that a method has been deprecated. def deprecate(*method_names) |