mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Small typo
This commit is contained in:
parent
936fd4c1e0
commit
e2960fb293
4 changed files with 5 additions and 5 deletions
|
@ -27,7 +27,7 @@ module ActiveRecord
|
||||||
#
|
#
|
||||||
# ==== Examples
|
# ==== Examples
|
||||||
#
|
#
|
||||||
# The type detected by Active Record can be overriden.
|
# The type detected by Active Record can be overridden.
|
||||||
#
|
#
|
||||||
# # db/schema.rb
|
# # db/schema.rb
|
||||||
# create_table :store_listings, force: true do |t|
|
# create_table :store_listings, force: true do |t|
|
||||||
|
|
|
@ -63,7 +63,7 @@ module ActiveRecord
|
||||||
private
|
private
|
||||||
# Takes an input from the database, or from attribute setters,
|
# Takes an input from the database, or from attribute setters,
|
||||||
# and casts it to a type appropriate for this object. This method
|
# and casts it to a type appropriate for this object. This method
|
||||||
# should not be overriden by subclasses. Instead, override `cast_value`.
|
# should not be overridden by subclasses. Instead, override `cast_value`.
|
||||||
def type_cast(value) # :api: public
|
def type_cast(value) # :api: public
|
||||||
cast_value(value) unless value.nil?
|
cast_value(value) unless value.nil?
|
||||||
end
|
end
|
||||||
|
|
|
@ -308,7 +308,7 @@ TIP: This option should be used only if you don't care about the content type of
|
||||||
the response. Using `:plain` or `:html` might be more appropriate in most of the
|
the response. Using `:plain` or `:html` might be more appropriate in most of the
|
||||||
time.
|
time.
|
||||||
|
|
||||||
NOTE: Unless overriden, your response returned from this render option will be
|
NOTE: Unless overridden, your response returned from this render option will be
|
||||||
`text/html`, as that is the default content type of Action Dispatch response.
|
`text/html`, as that is the default content type of Action Dispatch response.
|
||||||
|
|
||||||
#### Options for `render`
|
#### Options for `render`
|
||||||
|
|
|
@ -315,10 +315,10 @@ authors.compact!
|
||||||
|
|
||||||
### Changes on Default Scopes
|
### Changes on Default Scopes
|
||||||
|
|
||||||
Default scopes are no longer overriden by chained conditions.
|
Default scopes are no longer overridden by chained conditions.
|
||||||
|
|
||||||
In previous versions when you defined a `default_scope` in a model
|
In previous versions when you defined a `default_scope` in a model
|
||||||
it was overriden by chained conditions in the same field. Now it
|
it was overridden by chained conditions in the same field. Now it
|
||||||
is merged like any other scope.
|
is merged like any other scope.
|
||||||
|
|
||||||
Before:
|
Before:
|
||||||
|
|
Loading…
Reference in a new issue