1 require 'rails/railtie'
2 require 'google/api_client/logging'
8 # Optional support class for Rails. Currently replaces the built-in logger
9 # with Rails' application log.
11 class Railtie < Rails::Railtie
12 initializer 'google-api-client' do |app|
13 logger = app.config.logger || Rails.logger
14 Google::APIClient.logger = logger unless logger.nil?