Sha256: 13797b5fbccb81985214daa4e55cf2c4254d5bd7691ddd0057d1deec1d60eb6d

Contents?: true

Size: 656 Bytes

Versions: 2

Compression:

Stored size: 656 Bytes

Contents

module GoogleSafeBrowsing
  class GoogleSafeBrowsingRailtie < Rails::Railtie
    config.google_safe_browsing = ActiveSupport::OrderedOptions.new

    rake_tasks do
      load File.expand_path('../../tasks/google_safe_browsing_tasks.rake', __FILE__)
    end

    generators do
      require File.expand_path('../../generators/install_generator', __FILE__)
    end

    initializer 'google_safe_browsing.set_api_key' do |app|
      GoogleSafeBrowsing.configure do |config|
        config.api_key = app.config.google_safe_browsing[:api_key]
      end
    end

    initializer 'Rails logger' do
      GoogleSafeBrowsing.logger = Rails.logger
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
google_safe_browsing-0.6.5 lib/google_safe_browsing/google_safe_browsing_railtie.rb
google_safe_browsing-0.6.4 lib/google_safe_browsing/google_safe_browsing_railtie.rb