aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-09-13 06:06:20 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-09-13 06:06:20 -0700
commit941e99041048e701e247ac8c7bf068fc3816b040 (patch)
tree9ac7c7a4b718c2c7bd452d38a53a89c55dc68fe9 /activesupport/lib/active_support
parentc2018b4b7b50b1c4aa89ff61cf0099229c3669a1 (diff)
downloadrails-941e99041048e701e247ac8c7bf068fc3816b040.tar.gz
rails-941e99041048e701e247ac8c7bf068fc3816b040.tar.bz2
rails-941e99041048e701e247ac8c7bf068fc3816b040.zip
Shush, new_callbacks
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/new_callbacks.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/new_callbacks.rb b/activesupport/lib/active_support/new_callbacks.rb
index ce08ea8660..a9d5f6ac5b 100644
--- a/activesupport/lib/active_support/new_callbacks.rb
+++ b/activesupport/lib/active_support/new_callbacks.rb
@@ -396,8 +396,10 @@ module ActiveSupport
end
RUBY_EVAL
- undef_method "_run_#{symbol}_callbacks" if method_defined?("_run_#{symbol}_callbacks")
- class_eval body, __FILE__, line
+ silence_warnings do
+ undef_method "_run_#{symbol}_callbacks" if method_defined?("_run_#{symbol}_callbacks")
+ class_eval body, __FILE__, line
+ end
end
# This is called the first time a callback is called with a particular