diff options
author | Xavier Noria <fxn@hashref.com> | 2017-03-22 00:51:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-22 00:51:29 -0700 |
commit | 34fe2a4fc778d18b7fe6bdf3629c1481bee789b9 (patch) | |
tree | a32f89a9b2db8272a788d63eb41a94964fa18204 /actionpack/lib/action_dispatch/request | |
parent | afbbcf24d791362a65c7f29b739c73a5b09e3816 (diff) | |
parent | 1c6747999a74eac84d4e30d698f59c16e0309d64 (diff) | |
download | rails-34fe2a4fc778d18b7fe6bdf3629c1481bee789b9.tar.gz rails-34fe2a4fc778d18b7fe6bdf3629c1481bee789b9.tar.bz2 rails-34fe2a4fc778d18b7fe6bdf3629c1481bee789b9.zip |
Merge pull request #28394 from shime/docs-action-dispatch
[docs] fix ActionDispatch documentation
Diffstat (limited to 'actionpack/lib/action_dispatch/request')
-rw-r--r-- | actionpack/lib/action_dispatch/request/session.rb | 8 | ||||
-rw-r--r-- | actionpack/lib/action_dispatch/request/utils.rb | 3 |
2 files changed, 5 insertions, 6 deletions
diff --git a/actionpack/lib/action_dispatch/request/session.rb b/actionpack/lib/action_dispatch/request/session.rb index a2a80f39fc..74ba6466cf 100644 --- a/actionpack/lib/action_dispatch/request/session.rb +++ b/actionpack/lib/action_dispatch/request/session.rb @@ -7,10 +7,10 @@ module ActionDispatch ENV_SESSION_KEY = Rack::RACK_SESSION # :nodoc: ENV_SESSION_OPTIONS_KEY = Rack::RACK_SESSION_OPTIONS # :nodoc: - # Singleton object used to determine if an optional param wasn't specified + # Singleton object used to determine if an optional param wasn't specified. Unspecified = Object.new - # Creates a session hash, merging the properties of the previous session if any + # Creates a session hash, merging the properties of the previous session if any. def self.create(store, req, default_options) session_was = find req session = Request::Session.new(store, req) @@ -63,7 +63,7 @@ module ActionDispatch @req = req @delegate = {} @loaded = false - @exists = nil # we haven't checked yet + @exists = nil # We haven't checked yet. end def id @@ -79,7 +79,7 @@ module ActionDispatch options = self.options || {} @by.send(:delete_session, @req, options.id(@req), options) - # Load the new sid to be written with the response + # Load the new sid to be written with the response. @loaded = false load_for_write! end diff --git a/actionpack/lib/action_dispatch/request/utils.rb b/actionpack/lib/action_dispatch/request/utils.rb index 01bc871e5f..3615e4b1d8 100644 --- a/actionpack/lib/action_dispatch/request/utils.rb +++ b/actionpack/lib/action_dispatch/request/utils.rb @@ -40,7 +40,6 @@ module ActionDispatch class ParamEncoder # :nodoc: # Convert nested Hash to HashWithIndifferentAccess. - # def self.normalize_encode_params(params) case params when Array @@ -63,7 +62,7 @@ module ActionDispatch end end - # Remove nils from the params hash + # Remove nils from the params hash. class NoNilParamEncoder < ParamEncoder # :nodoc: def self.handle_array(params) list = super |