From 6e7b02b21a65bcf86dbd61d37dcf682e4153bd99 Mon Sep 17 00:00:00 2001 From: Chad Woolley Date: Sun, 4 Oct 2009 01:57:35 -0700 Subject: Fix for Ruby 1.9 - define_method throws an exception under 1.9 if given incorrect number of args Signed-off-by: Carl Lerche --- activeresource/test/cases/observing_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activeresource/test/cases') diff --git a/activeresource/test/cases/observing_test.rb b/activeresource/test/cases/observing_test.rb index 9599ff7b0f..925ec7a84a 100644 --- a/activeresource/test/cases/observing_test.rb +++ b/activeresource/test/cases/observing_test.rb @@ -10,7 +10,7 @@ class ObservingTest < Test::Unit::TestCase %w( after_create after_destroy after_save after_update before_create before_destroy before_save before_update).each do |method| - define_method(method) { log method } + define_method(method) { |*| log method } end private -- cgit v1.2.3