pass arguments to constructor
@@ -7,7 +7,7 @@ require 'oso/version'
# Top-level namespace for Oso authorization library.
module Oso
- def self.new
- ::Oso::Oso.new
+ def self.new(not_found_error: NotFoundError, forbidden_error: ForbiddenError, read_action: 'read')
+ ::Oso::Oso.new(not_found_error: not_found_error, forbidden_error: forbidden_error, read_action: read_action)
end
end
