Sha256: 10bde6b98e8d7d9ae4f4645871e51ccb0d37742ff756d729ae329729fd3a98c5
Contents?: true
Size: 600 Bytes
Versions: 3
Compression:
Stored size: 600 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 ||= Rails.logger if defined? Rails end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
blacklight-5.10.2 | lib/blacklight/abstract_repository.rb |
blacklight-5.10.1 | lib/blacklight/abstract_repository.rb |
blacklight-5.10.0 | lib/blacklight/abstract_repository.rb |