Sha256: 2552b7ee83f55071ff2bd7966a8d0521b8c7beb37d15c1699cffa5ca755fa855
Contents?: true
Size: 770 Bytes
Versions: 8
Compression:
Stored size: 770 Bytes
Contents
module OvirtMetrics class Configurator def initialize self.suppress_warnings = false self.connection_specification_name = 'ovirt_metrics' if ActiveRecord::VERSION::MAJOR >= 5 end attr_accessor :suppress_warnings attr_reader :connection_specification_name def connection_specification_name=(value) if ActiveRecord::VERSION::MAJOR < 5 OvirtMetrics.warn "WARNING: ovirt_metric's " \ "connection_specification_name option is only available with " \ "Active Record 5 or newer. The main application pool " \ "('primary') will be used by default until you connect to a " \ "separate Ovirt database." else @connection_specification_name = value end end end end
Version data entries
8 entries across 8 versions & 1 rubygems