clean up some warnings
This commit is contained in:
Родитель
86c762aea4
Коммит
2068ba7bb6
|
@ -126,7 +126,9 @@ module SecureHeaders
|
|||
# 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
|
||||
|
|
Загрузка…
Ссылка в новой задаче