Sha256: abd93401bfb482fb228f1b3095ca11cb1f90baa267c2d21b5510b613f6447daa
Contents?: true
Size: 686 Bytes
Versions: 11
Compression:
Stored size: 686 Bytes
Contents
module CopycopterClient # 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 CopycopterClient.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 'copycopter_client/railtie' else CopycopterClient::Rails.initialize end
Version data entries
11 entries across 11 versions & 1 rubygems