aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorYehuda Katz <yehudakatz@YK.local>2010-02-10 14:37:38 -0800
committerYehuda Katz <yehudakatz@YK.local>2010-02-10 14:40:36 -0800
commitbea38d64ee316713054811c5e2af49c8eccb8576 (patch)
tree01f15876ba6fd79d2d16d0d6e8b76c7a6e8c5a04 /activesupport
parent9fd9e5d4f7ce96dd10c775bf46be75cf49e070f4 (diff)
downloadrails-bea38d64ee316713054811c5e2af49c8eccb8576.tar.gz
rails-bea38d64ee316713054811c5e2af49c8eccb8576.tar.bz2
rails-bea38d64ee316713054811c5e2af49c8eccb8576.zip
Don't rely on @message in Error classes being available for use
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/rescuable_test.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/activesupport/test/rescuable_test.rb b/activesupport/test/rescuable_test.rb
index 9f2b783b2e..2289a825db 100644
--- a/activesupport/test/rescuable_test.rb
+++ b/activesupport/test/rescuable_test.rb
@@ -7,11 +7,8 @@ class NuclearExplosion < StandardError
end
class MadRonon < StandardError
- attr_accessor :message
-
def initialize(message)
- @message = message
- super()
+ super(message)
end
end