File tree Expand file tree Collapse file tree 3 files changed +1
-5
lines changed
actionpack/lib/action_controller
railties/test/application Expand file tree Collapse file tree 3 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,6 @@ module RequestForgeryProtection
90
90
config_accessor :per_form_csrf_tokens
91
91
self . per_form_csrf_tokens = false
92
92
93
- # Controls whether forgery protection is enabled by default.
94
- config_accessor :default_protect_from_forgery
95
- self . default_protect_from_forgery = false
96
-
97
93
# The strategy to use for storing and retrieving CSRF tokens.
98
94
config_accessor :csrf_token_storage_strategy
99
95
self . csrf_token_storage_strategy = SessionStore . new
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ class Railtie < Rails::Railtie # :nodoc:
77
77
78
78
# Configs used in other initializers
79
79
filtered_options = options . except (
80
+ :default_protect_from_forgery ,
80
81
:log_query_tags_around_actions ,
81
82
:permit_all_parameters ,
82
83
:action_on_unpermitted_parameters ,
Original file line number Diff line number Diff line change @@ -1747,7 +1747,6 @@ def create
1747
1747
test "config.action_controller.default_protect_from_forgery is true by default" do
1748
1748
app "development"
1749
1749
1750
- assert_equal true , ActionController ::Base . default_protect_from_forgery
1751
1750
assert_includes ActionController ::Base . __callbacks [ :process_action ] . map ( &:filter ) , :verify_authenticity_token
1752
1751
end
1753
1752
You can’t perform that action at this time.
0 commit comments