Skip to content

Commit cf7fac7

Browse files
committed
Fix ActiveModel::Errors deprecation messages failing when used on its own
Deprecation messages in ActiveModel::Errors are using String#squish from ActiveSupport but were not explicitly requiring it, causing failures when used outside rails.
1 parent 92a3c8d commit cf7fac7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

activemodel/lib/active_model/errors.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require 'active_support/core_ext/array/conversions'
44
require 'active_support/core_ext/string/inflections'
55
require 'active_support/core_ext/object/deep_dup'
6+
require 'active_support/core_ext/string/filters'
67

78
module ActiveModel
89
# == Active \Model \Errors

0 commit comments

Comments
 (0)