Add railtie
This commit is contained in:
1 parent
7e3cacdb0e
commit
31a78788bd
1 file changed
+16
@@ -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
|
||||
Reference in new issue
Block a user