Sha256: f2b8d5ae97dbd46b8554fed96eacd2784d995977972af3170a1d68ed7ab32abc

Contents?: true

Size: 359 Bytes

Versions: 9

Compression:

Stored size: 359 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
jomz-google-api-client-0.7.1 lib/google/api_client/railtie.rb
google-api-client-0.7.1 lib/google/api_client/railtie.rb
google-api-client-0.7.0 lib/google/api_client/railtie.rb
google-api-client-0.7.0.rc2 lib/google/api_client/railtie.rb
google-api-client-0.6.4 lib/google/api_client/railtie.rb
google-api-client-0.6.3 lib/google/api_client/railtie.rb
google-api-client-0.6.2 lib/google/api_client/railtie.rb
google-api-client-0.6.1 lib/google/api_client/railtie.rb
google-api-client-0.6.0 lib/google/api_client/railtie.rb