lib/pact_broker/webhooks/execution.rb in pact_broker-2.107.1 vs lib/pact_broker/webhooks/execution.rb in pact_broker-2.108.0

- old
+ new

@@ -1,8 +1,6 @@ -require "sequel" -require "pact_broker/db" -require "pact_broker/repositories/helpers" +require "pact_broker/dataset" module PactBroker module Webhooks class Execution < Sequel::Model( Sequel::Model.db[:webhook_executions].select( @@ -13,14 +11,12 @@ Sequel[:webhook_executions][:created_at]) ) set_primary_key :id plugin :timestamps - dataset_module do - include PactBroker::Repositories::Helpers - end - associate(:many_to_one, :triggered_webhook, :class => "PactBroker::Webhooks::TriggeredWebhook", :key => :triggered_webhook_id, :primary_key => :id) + + dataset_module(PactBroker::Dataset) def <=> other comp = created_date <=> other.created_date comp = id <=> other.id if comp == 0 comp