File tree Expand file tree Collapse file tree 2 files changed +1
-1
lines changed
fixtures/rails_3_2_22_no_init/app/controllers Expand file tree Collapse file tree 2 files changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ def other_action
99 end
1010
1111 def secure_header_options_for ( header , options )
12- warn "[DEPRECATION] secure_header_options_for will not be supported in secure_headers 3.x."
1312 if params [ :action ] == "other_action"
1413 if header == :csp
1514 options . merge ( :style_src => "'self'" )
Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ def set_x_permitted_cross_domain_policies_header(options=self.class.secure_heade
212212 # we can't use ||= because I'm overloading false => disable, nil => default
213213 # both of which trigger the conditional assignment
214214 def secure_header_options_for ( type , options )
215+ warn "[DEPRECATION] secure_header_options_for will not be supported in secure_headers 3.x."
215216 options . nil? ? ::SecureHeaders ::Configuration . send ( type ) : options
216217 end
217218
You can’t perform that action at this time.
0 commit comments