Add railtie

This commit is contained in:
Steven Bazyl committed 2013-01-02 20:07:17 -08:00
1 parent 7e3cacdb0e
commit 31a78788bd
1 file changed
+16
+16
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