Method: Hanami::Config::Actions::ContentSecurityPolicy#to_s

Defined in:
lib/hanami/config/actions/content_security_policy.rb

#to_sObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 2.0.0



124
125
126
127
128
# File 'lib/hanami/config/actions/content_security_policy.rb', line 124

def to_s
  @policy.map do |key, value|
    "#{dasherize(key)} #{value}"
  end.join(";")
end