Add railtie

This commit is contained in:
Steven Bazyl 2013-01-02 20:07:17 -08:00
parent 7e3cacdb0e
commit 31a78788bd
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
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