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

Version Path
copy_tuner_client-0.0.15 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.0.14 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.0.12 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.0.11 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.0.9 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.0.8 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.0.7 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.0.6 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.0.5 lib/copy_tuner_client/rails.rb