Skip to content

Commit

Permalink
clean up some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eleabrton authored and oreoshake committed May 26, 2021
1 parent 69e2ddc commit de1c1d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/secure_headers/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ def deep_copy_if_hash(value)
# The list of attributes that must respond to a `make_header` method
HEADERABLE_ATTRIBUTES = (CONFIG_ATTRIBUTES - [:cookies]).freeze

attr_accessor(*CONFIG_ATTRIBUTES_TO_HEADER_CLASSES.keys)
attr_writer(*(CONFIG_ATTRIBUTES_TO_HEADER_CLASSES.reject { |key| [:csp, :csp_report_only].include?(key)}.keys))

attr_reader(*(CONFIG_ATTRIBUTES_TO_HEADER_CLASSES.keys))

@script_hashes = nil
@style_hashes = nil
Expand Down

0 comments on commit de1c1d8

Please sign in to comment.