method

build_directives

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

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 171
      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.