Sha256: 16c7a6a053c7e74458b52dd2fe5011ce1bd40c25c5ab7181931ab3f647356240

Contents?: true

Size: 739 Bytes

Versions: 14

Compression:

Stored size: 739 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
      require 'copy_tuner_client/simple_form_extention'
    end
  end
end

if defined?(::Rails::Railtie)
  require 'copy_tuner_client/engine'
else
  CopyTunerClient::Rails.initialize
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
copy_tuner_client-0.3.2 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.3.1 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.3.0 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.2.4 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.2.3 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.2.2 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.2.1 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.2.0 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.1.1.beta19 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.1.1.beta18 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.1.1.beta17 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.1.1.beta16 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.1.1.beta15 lib/copy_tuner_client/rails.rb
copy_tuner_client-0.1.1.beta14 lib/copy_tuner_client/rails.rb