mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Don't rely on @message in Error classes being available for use
This commit is contained in:
@@ -7,11 +7,8 @@ class NuclearExplosion < StandardError
|
||||
end
|
||||
|
||||
class MadRonon < StandardError
|
||||
attr_accessor :message
|
||||
|
||||
def initialize(message)
|
||||
@message = message
|
||||
super()
|
||||
super(message)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user