diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-04-10 19:48:06 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-04-12 02:26:56 +0530 |
commit | ac027338e4a165273607dccee49a3d38bc836794 (patch) | |
tree | a4020eb05b843887f73acb0ada519c9605dcf5e1 /activemodel/lib/active_model | |
parent | 35b19cd1eb95ca0419e1be879fbadf92948369d7 (diff) | |
download | rails-ac027338e4a165273607dccee49a3d38bc836794.tar.gz rails-ac027338e4a165273607dccee49a3d38bc836794.tar.bz2 rails-ac027338e4a165273607dccee49a3d38bc836794.zip |
Pass over all Rails 5 warnings, to make sure:
- we are ending sentences properly
- fixing of space issues
- fixed continuity issues in some sentences.
Reverts https://github.com/rails/rails/commit/8fc97d198ef31c1d7a4b9b849b96fc08a667fb02 .
This change reverts making sure we add '.' at end of deprecation sentences.
This is to keep sentences within Rails itself consistent and with a '.' at the end.
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r-- | activemodel/lib/active_model/errors.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb index d925960b41..d106f65fa2 100644 --- a/activemodel/lib/active_model/errors.rb +++ b/activemodel/lib/active_model/errors.rb @@ -346,7 +346,7 @@ module ActiveModel # # => {:name=>["can't be empty"]} def add_on_empty(attributes, options = {}) ActiveSupport::Deprecation.warn(<<-MESSAGE.squish) - ActiveModel::Errors#add_on_empty is deprecated and will be removed in Rails 5.1 + ActiveModel::Errors#add_on_empty is deprecated and will be removed in Rails 5.1. To achieve the same use: @@ -368,7 +368,7 @@ module ActiveModel # # => {:name=>["can't be blank"]} def add_on_blank(attributes, options = {}) ActiveSupport::Deprecation.warn(<<-MESSAGE.squish) - ActiveModel::Errors#add_on_blank is deprecated and will be removed in Rails 5.1 + ActiveModel::Errors#add_on_blank is deprecated and will be removed in Rails 5.1. To achieve the same use: |