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