Add railtie
This commit is contained in:
parent
7e3cacdb0e
commit
31a78788bd
|
@ -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
|
Loading…
Reference in New Issue