aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-03-20 18:12:21 +0000
committerPratik Naik <pratiknaik@gmail.com>2009-03-20 18:12:21 +0000
commitbc1dd0b82eb994a9948c038e01db7ced5a48ffea (patch)
treeeb6720cff093eb1fe18e36cdc5d266cbd384bf26
parent7d187c193c96c10398934851fb660b6b3cfcd240 (diff)
downloadrails-bc1dd0b82eb994a9948c038e01db7ced5a48ffea.tar.gz
rails-bc1dd0b82eb994a9948c038e01db7ced5a48ffea.tar.bz2
rails-bc1dd0b82eb994a9948c038e01db7ced5a48ffea.zip
Improve the deprecation message for Errors#on
-rw-r--r--activemodel/lib/active_model/deprecated_error_methods.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/deprecated_error_methods.rb b/activemodel/lib/active_model/deprecated_error_methods.rb
index 39c79bb0c6..2f2e804ade 100644
--- a/activemodel/lib/active_model/deprecated_error_methods.rb
+++ b/activemodel/lib/active_model/deprecated_error_methods.rb
@@ -2,8 +2,8 @@ module ActiveModel
module DeprecatedErrorMethods
def on(attribute)
message = "Errors#on have been deprecated, use Errors#[] instead.\n"
- message << "Also note that the behaviour of Errors#[] has changed. Errors#[] now always returns an Array and an empty Array when "
- message << "there are not errors on the specified attribute."
+ message << "Also note that the behaviour of Errors#[] has changed. Errors#[] now always returns an Array. An empty Array is "
+ message << "returned when there are no errors on the specified attribute."
ActiveSupport::Deprecation.warn(message)
errors = self[attribute]