lib/checkpoint/db/permit.rb in checkpoint-1.0.0 vs lib/checkpoint/db/permit.rb in checkpoint-1.0.1

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true module Checkpoint module DB # Sequel model for permits - class Permit < Sequel::Model + class Permit < Sequel::Model(DB.db) # Instantiate a Permit from the constituent domain objects (agent, # resource, credential). def self.from(agent, credential, resource, zone: 'system') new( agent_type: agent.type, agent_id: agent.id, agent_token: agent.token,