aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/callbacks.rb
diff options
context:
space:
mode:
authorPavel Gorbokon <pahanix@gmail.com>2010-12-07 18:55:43 +0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-12-07 20:55:39 -0200
commit4c4c7a272fdcec12691ccf48b5eefce49b7bac8d (patch)
treeb8c3d4d7aa7b25e15ec5b8ca4f88f4b5ee28ef55 /activesupport/lib/active_support/callbacks.rb
parentef79658bd143a9243eefa90db2f9ce300f18dd0d (diff)
downloadrails-4c4c7a272fdcec12691ccf48b5eefce49b7bac8d.tar.gz
rails-4c4c7a272fdcec12691ccf48b5eefce49b7bac8d.tar.bz2
rails-4c4c7a272fdcec12691ccf48b5eefce49b7bac8d.zip
Ommit nil in method call
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activesupport/lib/active_support/callbacks.rb')
-rw-r--r--activesupport/lib/active_support/callbacks.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb
index 905dfb040b..4dcbbb819a 100644
--- a/activesupport/lib/active_support/callbacks.rb
+++ b/activesupport/lib/active_support/callbacks.rb
@@ -388,7 +388,7 @@ module ActiveSupport
# key. See #define_callbacks for more information.
#
def __define_runner(symbol) #:nodoc:
- body = send("_#{symbol}_callbacks").compile(nil)
+ body = send("_#{symbol}_callbacks").compile
silence_warnings do
undef_method "_run_#{symbol}_callbacks" if method_defined?("_run_#{symbol}_callbacks")