Sha256: 9ae8bfc3156ebbd148fcd6927242bf1b0b9e06d5e9f48ef493dd7b9ccecb57af

Contents?: true

Size: 302 Bytes

Versions: 9

Compression:

Stored size: 302 Bytes

Contents

module PactBroker
  module Versions
    module LazyLoaders
      LATEST_VERSION_FOR_BRANCH = lambda {
        self.class
          .where(branch: branch, pacticipant_id: pacticipant_id)
          .exclude(branch: nil)
          .order(Sequel.desc(:order))
          .limit(1)
      }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pact_broker-2.83.0 lib/pact_broker/versions/lazy_loaders.rb
pact_broker-2.82.0 lib/pact_broker/versions/lazy_loaders.rb
pact_broker-2.81.0 lib/pact_broker/versions/lazy_loaders.rb
pact_broker-2.80.0 lib/pact_broker/versions/lazy_loaders.rb
pact_broker-2.79.1 lib/pact_broker/versions/lazy_loaders.rb
pact_broker-2.79.0 lib/pact_broker/versions/lazy_loaders.rb
pact_broker-2.78.1 lib/pact_broker/versions/lazy_loaders.rb
pact_broker-2.78.0 lib/pact_broker/versions/lazy_loaders.rb
pact_broker-2.77.0 lib/pact_broker/versions/lazy_loaders.rb