Sha256: d8116402d62827587751d0837d0bd90931e3b8b7ea6f253b17e473f1fb2543e5
Contents?: true
Size: 682 Bytes
Versions: 4
Compression:
Stored size: 682 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
4 entries across 4 versions & 1 rubygems