Module: Zantetsuken

Defined in:
lib/zantetsuken.rb,
lib/zantetsuken/ruleset.rb,
lib/zantetsuken/version.rb,
lib/zantetsuken/ruleset/base.rb

Overview

A policy that defines sources from which content should be able to load in the browser when you visit this Rails application.

Defined Under Namespace

Modules: Ruleset

Constant Summary collapse

VERSION =
'0.1.1'

Class Method Summary collapse

Class Method Details

.load(base_policy = ActionDispatch::ContentSecurityPolicy.new) ⇒ Object



16
17
18
# File 'lib/zantetsuken.rb', line 16

def load(base_policy = ActionDispatch::ContentSecurityPolicy.new)
  self::Ruleset.load(base_policy)
end