aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-11-11 10:10:32 -0800
committerZachary Scott <e@zzak.io>2014-11-11 10:10:32 -0800
commit46f172798e56ba5383ba5305e2cce5aad02e8e30 (patch)
treedcd3a22f6dd8373cf19a2b9517e8fda21a47fa2b
parentd99f96452277f53a6434bc81f7a9539daecba5a9 (diff)
parent4223fa70f978af3d18af1b4301013a68a776a498 (diff)
downloadrails-46f172798e56ba5383ba5305e2cce5aad02e8e30.tar.gz
rails-46f172798e56ba5383ba5305e2cce5aad02e8e30.tar.bz2
rails-46f172798e56ba5383ba5305e2cce5aad02e8e30.zip
Merge pull request #17588 from djpowers/patch-1
[ci skip] Use American English and replace "behaviour" with "behavior".
-rw-r--r--guides/source/upgrading_ruby_on_rails.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md
index 25759a0c77..6f5dea45b5 100644
--- a/guides/source/upgrading_ruby_on_rails.md
+++ b/guides/source/upgrading_ruby_on_rails.md
@@ -421,7 +421,7 @@ class ReadOnlyModel < ActiveRecord::Base
end
```
-This behaviour was never intentionally supported. Due to a change in the internals
+This behavior was never intentionally supported. Due to a change in the internals
of `ActiveSupport::Callbacks`, this is no longer allowed in Rails 4.1. Using a
`return` statement in an inline callback block causes a `LocalJumpError` to
be raised when the callback is executed.
@@ -795,7 +795,7 @@ Rails 4.0 extracted Active Resource to its own gem. If you still need the featur
* Rails 4.0 has changed how errors attach with the `ActiveModel::Validations::ConfirmationValidator`. Now when confirmation validations fail, the error will be attached to `:#{attribute}_confirmation` instead of `attribute`.
-* Rails 4.0 has changed `ActiveModel::Serializers::JSON.include_root_in_json` default value to `false`. Now, Active Model Serializers and Active Record objects have the same default behaviour. This means that you can comment or remove the following option in the `config/initializers/wrap_parameters.rb` file:
+* Rails 4.0 has changed `ActiveModel::Serializers::JSON.include_root_in_json` default value to `false`. Now, Active Model Serializers and Active Record objects have the same default behavior. This means that you can comment or remove the following option in the `config/initializers/wrap_parameters.rb` file:
```ruby
# Disable root element in JSON by default.