summaryrefslogtreecommitdiff
path: root/lib/psych/class_loader.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/psych/class_loader.rb')
-rw-r--r--lib/psych/class_loader.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/psych/class_loader.rb b/lib/psych/class_loader.rb
index a5d1a7a..088373c 100644
--- a/lib/psych/class_loader.rb
+++ b/lib/psych/class_loader.rb
@@ -86,7 +86,7 @@ module Psych
if @symbols.include? sym
super
else
- raise DisallowedClass, 'Symbol'
+ raise DisallowedClass.new('load', 'Symbol')
end
end
@@ -96,7 +96,7 @@ module Psych
if @classes.include? klassname
super
else
- raise DisallowedClass, klassname
+ raise DisallowedClass.new('load', klassname)
end
end
end