Sha256: bc433f4740b49554c2cda84158aabbb5a081710b3565d255a2c70c0d9025fc66
Contents?: true
Size: 684 Bytes
Versions: 9
Compression:
Stored size: 684 Bytes
Contents
module CopyTunerClient # Responsible for Rails initialization module Rails # Sets up the logger, environment, name, project root, and framework name # for Rails applications. Must be called after framework initialization. def self.initialize CopyTunerClient.configure(false) do |config| config.environment_name = ::Rails.env config.logger = ::Rails.logger config.framework = "Rails: #{::Rails::VERSION::STRING}" config.middleware = ::Rails.configuration.middleware end end end end if defined?(::Rails::Railtie) require 'copy_tuner_client/railtie' else CopyTunerClient::Rails.initialize end
Version data entries
9 entries across 9 versions & 1 rubygems