Skip to content

Commit eef3bab

Browse files
authored
Merge pull request rails#54190 from zzak/actionpack-constants-nodoc-cleanup
Cleanup some private constants from API doc
2 parents fa9cf26 + f7329ea commit eef3bab

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

actionpack/lib/action_controller/metal/request_forgery_protection.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ def protect_against_forgery? # :doc:
626626
If you cannot change the referrer policy, you can disable origin checking with the
627627
Rails.application.config.action_controller.forgery_protection_origin_check setting.
628628
MSG
629+
private_constant :NULL_ORIGIN_MESSAGE
629630

630631
# Checks if the request originated from the same origin by looking at the Origin
631632
# header.

actionpack/lib/action_dispatch/http/filter_parameters.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ module Http
1717
# For more information about filter behavior, see
1818
# ActiveSupport::ParameterFilter.
1919
module FilterParameters
20-
ENV_MATCH = [/RAW_POST_DATA/, "rack.request.form_vars"] # :nodoc:
21-
NULL_PARAM_FILTER = ActiveSupport::ParameterFilter.new # :nodoc:
22-
NULL_ENV_FILTER = ActiveSupport::ParameterFilter.new ENV_MATCH # :nodoc:
20+
# :stopdoc:
21+
ENV_MATCH = [/RAW_POST_DATA/, "rack.request.form_vars"]
22+
NULL_PARAM_FILTER = ActiveSupport::ParameterFilter.new
23+
NULL_ENV_FILTER = ActiveSupport::ParameterFilter.new ENV_MATCH
24+
# :startdoc:
2325

2426
def initialize
2527
super

0 commit comments

Comments
 (0)