Sha256: 864677d6f65b007e2c00349b0514633f50fdf6a39f4737e35a3e0cf81fa56652
Contents?: true
Size: 854 Bytes
Versions: 2
Compression:
Stored size: 854 Bytes
Contents
require 'copycopter_client/helper' if defined?(ActionController::Base) ActionController::Base.send :include, CopycopterClient::Helper end if defined?(ActionView::Base) ActionView::Base.send :include, CopycopterClient::Helper end 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}" end end end end if defined?(Rails::Railtie) require 'copycopter_client/railtie' else CopycopterClient::Rails.initialize end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
copycopter_client-1.0.0.beta8 | lib/copycopter_client/rails.rb |
copycopter_client-1.0.0.beta7 | lib/copycopter_client/rails.rb |