aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Woolley <thewoolleyman@gmail.com>2009-10-04 01:57:35 -0700
committerCarl Lerche <carllerche@mac.com>2009-10-08 10:48:47 -0700
commit6e7b02b21a65bcf86dbd61d37dcf682e4153bd99 (patch)
treefb2cc1c5fec709c3a090d15a05924a7fb35f9746
parent32cea98c3b5bd077692f5b20756e0e3c75e0c524 (diff)
downloadrails-6e7b02b21a65bcf86dbd61d37dcf682e4153bd99.tar.gz
rails-6e7b02b21a65bcf86dbd61d37dcf682e4153bd99.tar.bz2
rails-6e7b02b21a65bcf86dbd61d37dcf682e4153bd99.zip
Fix for Ruby 1.9 - define_method throws an exception under 1.9 if given incorrect number of args
Signed-off-by: Carl Lerche <carllerche@mac.com>
-rw-r--r--activeresource/test/cases/observing_test.rb2
1 files changed, 1 insertions, 1 deletions
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