method

apply_mappings

apply_mappings(sources)
private

No documentation available.

# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 305
      def apply_mappings(sources)
        sources.map do |source|
          case source
          when Symbol
            apply_mapping(source)
          when String
            if hash_source?(source)
              "'#{source}'"
            else
              source
            end
          when Proc
            source
          else
            raise ArgumentError, "Invalid content security policy source: #{source.inspect}"
          end
        end
      end