1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix a few typos [ci skip]

This commit is contained in:
Robin Dupret 2015-04-05 15:55:18 +02:00
parent 0eab204c0e
commit 9cc41c36f7
3 changed files with 14 additions and 12 deletions

View file

@ -5,9 +5,9 @@ module ActionController
# In addition to <tt>AbstractController::UrlFor</tt>, this module accesses the HTTP layer to define
# url options like the +host+. In order to do so, this module requires the host class
# to implement +env+ which needs to be Rack-compatible and +request+
# which is either instance of +ActionDispatch::Request+ or an object
# that responds to <tt>host</tt>, <tt>optional_port</tt>, <tt>protocol</tt> and
# <tt>symbolized_path_parameter</tt> methods.
# which is either an instance of +ActionDispatch::Request+ or an object
# that responds to the +host+, +optional_port+, +protocol+ and
# +symbolized_path_parameter+ methods.
#
# class RootUrl
# include ActionController::UrlFor

View file

@ -40,11 +40,11 @@
cat = Cat.new
cat.assign_attributes(name: "Gorby", status: "yawning")
cat.name # => 'Gorby'
cat.status => 'yawning'
cat.name # => 'Gorby'
cat.status # => 'yawning'
cat.assign_attributes(status: "sleeping")
cat.name # => 'Gorby'
cat.status => 'sleeping'
cat.name # => 'Gorby'
cat.status # => 'sleeping'
*Bogdan Gusiev*

View file

@ -77,18 +77,20 @@ See [#17227](https://github.com/rails/rails/pull/17227) for more details.
### ActiveJob jobs now inherent from ApplicationJob by default
In Rails 4.2 an ActiveJob inherents from `ActiveJob::Base`. In Rails 5.0 this
behaviour has changed to now inherent from `ApplicationJob`.
In Rails 4.2 an ActiveJob inherits from `ActiveJob::Base`. In Rails 5.0 this
behavior has changed to now inherit from `ApplicationJob`.
When upgrading from Rails 4.2 to Rails 5.0 you need to create a file
`application_job.rb` in `app/jobs/` and add the following content:
When upgrading from Rails 4.2 to Rails 5.0 you need to create an
`application_job.rb` file in `app/jobs/` and add the following content:
```
class ApplicationJob < ActiveJob::Base
end
```
See [#19034](https://github.com/rails/rails/pull/19034) for more details
Then make sure that all your job classes inherit from it.
See [#19034](https://github.com/rails/rails/pull/19034) for more details.
Upgrading from Rails 4.1 to Rails 4.2
-------------------------------------