Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (20 sloc) 0.686 kB
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
Jump to Line
Something went wrong with that request. Please try again.