aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/strong_parameters.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-04-13 16:11:08 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-04-18 17:33:25 -0400
commit3ee56f7b3de34aa7f6bc9fc69c93544c3f037798 (patch)
tree6f0557a8bf3a92dfe40f5f3be67631e2033ba483 /actionpack/lib/action_controller/metal/strong_parameters.rb
parent29333ddb69e69d0fa99a66bf5fab333e8c5611aa (diff)
downloadrails-3ee56f7b3de34aa7f6bc9fc69c93544c3f037798.tar.gz
rails-3ee56f7b3de34aa7f6bc9fc69c93544c3f037798.tar.bz2
rails-3ee56f7b3de34aa7f6bc9fc69c93544c3f037798.zip
Improve documentation
We are talking about a list of parameters even so we need to use plural. Even if we were talking about the instance of the Parameters object we would have to use the capital and monospaced font.
Diffstat (limited to 'actionpack/lib/action_controller/metal/strong_parameters.rb')
-rw-r--r--actionpack/lib/action_controller/metal/strong_parameters.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb
index ac8e7eec84..f816fd7f74 100644
--- a/actionpack/lib/action_controller/metal/strong_parameters.rb
+++ b/actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -240,7 +240,7 @@ module ActionController
end
# Returns a safe <tt>ActiveSupport::HashWithIndifferentAccess</tt>
- # representation of this parameter with all unpermitted keys removed.
+ # representation of the parameters with all unpermitted keys removed.
#
# params = ActionController::Parameters.new({
# name: 'Senjougahara Hitagi',
@@ -259,7 +259,7 @@ module ActionController
end
end
- # Returns a safe <tt>Hash</tt> representation of this parameter
+ # Returns a safe <tt>Hash</tt> representation of the parameters
# with all unpermitted keys removed.
#
# params = ActionController::Parameters.new({
@@ -304,8 +304,8 @@ module ActionController
alias_method :to_param, :to_query
# Returns an unsafe, unfiltered
- # <tt>ActiveSupport::HashWithIndifferentAccess</tt> representation of this
- # parameter.
+ # <tt>ActiveSupport::HashWithIndifferentAccess</tt> representation of the
+ # parameters.
#
# params = ActionController::Parameters.new({
# name: 'Senjougahara Hitagi',