Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 309 Bytes
require 'bundler/setup'
require './boot'
require 'policy'
EM.synchrony do
Permit::Connection.establish_connections
p = Permit::Policy.new(:resource_id => 'r',
:collection => Permit::Connection.pool.collection('rules'))
p.insert(:subject_id => 's', :actions => { :foo => 'bar' })
end
Something went wrong with that request. Please try again.