Sha256: 3012cdad2d97d89353716adb5e5faca734e4168475daae7ba5c6eb8b07b4d3d8

Contents?: true

Size: 447 Bytes

Versions: 16

Compression:

Stored size: 447 Bytes

Contents

require 'rails/railtie'
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|
        logger = app.config.logger || Rails.logger
        Google::APIClient.logger = logger unless logger.nil?
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
arvados-google-api-client-0.8.7.9 lib/google/api_client/railtie.rb
arvados-google-api-client-0.8.7.8 lib/google/api_client/railtie.rb
arvados-google-api-client-0.8.7.7 lib/google/api_client/railtie.rb
arvados-google-api-client-0.8.7.6 lib/google/api_client/railtie.rb
arvados-google-api-client-0.8.7.5 lib/google/api_client/railtie.rb
arvados-google-api-client-0.8.7.4 lib/google/api_client/railtie.rb
arvados-google-api-client-0.8.7.3 lib/google/api_client/railtie.rb
arvados-google-api-client-0.8.7.2 lib/google/api_client/railtie.rb
cure-google-api-client-0.8.7.1 lib/google/api_client/railtie.rb
google-api-client-0.8.7 lib/google/api_client/railtie.rb
google-api-client-0.8.6 lib/google/api_client/railtie.rb
google-api-client-0.8.5 lib/google/api_client/railtie.rb
google-api-client-0.8.4 lib/google/api_client/railtie.rb
google-api-client-0.8.3 lib/google/api_client/railtie.rb
google-api-client-0.8.2 lib/google/api_client/railtie.rb
google-api-client-0.8.1.1 lib/google/api_client/railtie.rb