Sha256: e6c02270ff53b1137a70c592b581942ef5aab3ae817e205326fed8a8a604db5e

Contents?: true

Size: 587 Bytes

Versions: 7

Compression:

Stored size: 587 Bytes

Contents

module Blacklight
  class AbstractRepository
    attr_accessor :blacklight_config
    attr_writer :connection

    # ActiveSupport::Benchmarkable requires a logger method
    attr_accessor :logger

    include ActiveSupport::Benchmarkable

    def initialize blacklight_config
      @blacklight_config = blacklight_config
    end

    def connection
      @connection ||= build_connection
    end


    protected
      def connection_config
        @connection_config ||= Blacklight.connection_config
      end

      def logger
        @logger ||= Blacklight.logger
      end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-5.11.3 lib/blacklight/abstract_repository.rb
blacklight-5.12.1 lib/blacklight/abstract_repository.rb
blacklight-5.12.0 lib/blacklight/abstract_repository.rb
blacklight-5.10.3 lib/blacklight/abstract_repository.rb
blacklight-5.11.2 lib/blacklight/abstract_repository.rb
blacklight-5.11.1 lib/blacklight/abstract_repository.rb
blacklight-5.11.0 lib/blacklight/abstract_repository.rb