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:
parent
0eab204c0e
commit
9cc41c36f7
3 changed files with 14 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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*
|
||||
|
||||
|
|
|
@ -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
|
||||
-------------------------------------
|
||||
|
|
Loading…
Reference in a new issue