method

build_directives

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: PermissionsPolicy
build_directives(context) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/http/permissions_policy.rb, line 140
      def build_directives(context)
        @directives.map do |directive, sources|
          if sources.is_a?(Array)
            "#{directive} #{build_directive(sources, context).join(' ')}"
          elsif sources
            directive
          else
            nil
          end
        end
      end
Register or log in to add new notes.