diff options
author | Radan Skoric <radan.skoric@gmail.com> | 2015-03-21 12:30:29 +0100 |
---|---|---|
committer | Radan Skoric <radan.skoric@gmail.com> | 2015-03-21 12:35:25 +0100 |
commit | cf7fac7e29bb2816412c949fdaed3d61a923eb23 (patch) | |
tree | 12811859257a7c9b9f9991799460293ae4026305 /activemodel/lib/active_model | |
parent | 92a3c8dcdf174dab5e8759031b6bbe6cd891fe3c (diff) | |
download | rails-cf7fac7e29bb2816412c949fdaed3d61a923eb23.tar.gz rails-cf7fac7e29bb2816412c949fdaed3d61a923eb23.tar.bz2 rails-cf7fac7e29bb2816412c949fdaed3d61a923eb23.zip |
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.
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r-- | activemodel/lib/active_model/errors.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb index f324788979..cbca76d949 100644 --- a/activemodel/lib/active_model/errors.rb +++ b/activemodel/lib/active_model/errors.rb @@ -3,6 +3,7 @@ require 'active_support/core_ext/array/conversions' require 'active_support/core_ext/string/inflections' require 'active_support/core_ext/object/deep_dup' +require 'active_support/core_ext/string/filters' module ActiveModel # == Active \Model \Errors |