diff options
Diffstat (limited to 'activesupport/lib/active_support/basic_object.rb')
-rw-r--r-- | activesupport/lib/active_support/basic_object.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/basic_object.rb b/activesupport/lib/active_support/basic_object.rb index 009a521a40..bb01a47508 100644 --- a/activesupport/lib/active_support/basic_object.rb +++ b/activesupport/lib/active_support/basic_object.rb @@ -6,6 +6,11 @@ module ActiveSupport class BasicObject < ::BasicObject undef_method :== undef_method :equal? + + # Let ActiveSupport::BasicObject at least raise exceptions. + def raise(*args) + ::Object.send(:raise, *args) + end end else require 'blankslate' |