From 17141481d99f1ae6d229cd5330b249f101abd116 Mon Sep 17 00:00:00 2001 From: Christian Blais Date: Tue, 3 May 2016 14:37:11 -0400 Subject: Change RangeError to a more specific ActiveModel::RangeError The should make it easier for apps to rescue ActiveModel specific errors without the need to wrap all method calls with a generic rescue RangeError. --- activemodel/lib/active_model.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activemodel/lib/active_model.rb') diff --git a/activemodel/lib/active_model.rb b/activemodel/lib/active_model.rb index b95c174d6e..7de259a60d 100644 --- a/activemodel/lib/active_model.rb +++ b/activemodel/lib/active_model.rb @@ -49,6 +49,7 @@ module ActiveModel eager_autoload do autoload :Errors + autoload :RangeError, 'active_model/errors' autoload :StrictValidationFailed, 'active_model/errors' autoload :UnknownAttributeError, 'active_model/errors' end -- cgit v1.2.3