mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix actionpack typos [ci skip]
This commit is contained in:
parent
0f8eefa6a5
commit
41b7b8216c
2 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
module ActionController #:nodoc:
|
||||
# This module is responsible to provide `rescue_from` helpers
|
||||
# to controllers and configure when detailed exceptions must be
|
||||
# This module is responsible for providing `rescue_from` helpers
|
||||
# to controllers and configuring when detailed exceptions must be
|
||||
# shown.
|
||||
module Rescue
|
||||
extend ActiveSupport::Concern
|
||||
|
|
|
@ -43,7 +43,7 @@ module ActionController
|
|||
|
||||
# == Action Controller \Parameters
|
||||
#
|
||||
# Allows to choose which attributes should be whitelisted for mass updating
|
||||
# Allows you to choose which attributes should be whitelisted for mass updating
|
||||
# and thus prevent accidentally exposing that which shouldn't be exposed.
|
||||
# Provides two methods for this purpose: #require and #permit. The former is
|
||||
# used to mark parameters as required. The latter is used to set the parameter
|
||||
|
@ -196,7 +196,7 @@ module ActionController
|
|||
end
|
||||
alias_method :to_unsafe_hash, :to_unsafe_h
|
||||
|
||||
# Convert all hashes in values into parameters, then yield each pair like
|
||||
# Convert all hashes in values into parameters, then yield each pair in
|
||||
# the same way as <tt>Hash#each_pair</tt>
|
||||
def each_pair(&block)
|
||||
@parameters.each_pair do |key, value|
|
||||
|
@ -278,7 +278,7 @@ module ActionController
|
|||
# params = ActionController::Parameters.new(user: { ... }, profile: { ... })
|
||||
# user_params, profile_params = params.require(:user, :profile)
|
||||
#
|
||||
# Otherwise, the method reraises the first exception found:
|
||||
# Otherwise, the method re-raises the first exception found:
|
||||
#
|
||||
# params = ActionController::Parameters.new(user: {}, profile: {})
|
||||
# user_params, profile_params = params.require(:user, :profile)
|
||||
|
|
Loading…
Reference in a new issue