google-api-ruby-client/lib/google/api_client/railtie.rb

17 lines
359 B
Ruby

require 'google/api_client/logging'
module Google
class APIClient
##
# Optional support class for Rails. Currently replaces the built-in logger
# with Rails' application log.
#
class Railtie < Rails::Railtie
initializer 'google-api-client' do |app|
Google::APIClient.logger = Rails.logger
end
end
end
end