Sha256: 3831869fa867f9a68367e378d8383e210b2ae4368b8dc088dea7c4db6c48bbf4

Contents?: true

Size: 848 Bytes

Versions: 13

Compression:

Stored size: 848 Bytes

Contents

require 'rest_client'

module Skydrive
  class Engine < ::Rails::Engine
    OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:ssl_version] = 'SSLv3'
    config.autoload_paths << File.expand_path('../../', __FILE__)

    config.assets.precompile += %w( skydrive/font-awesome/font-awesome.min.css )
    config.assets.precompile += %w( skydrive/ember_app.js )

    config.log = true
    config.logger = Rails.logger
    config.log_level = :info

    isolate_namespace Skydrive

    initializer :append_migrations do |app|
      unless app.root.to_s == root.to_s
        config.paths["db/migrate"].expanded.each do |expanded_path|
          app.config.paths["db/migrate"] << expanded_path
        end
      end
    end

    initializer :initialize_logger do |app|
      Skydrive.logger = Rails.logger
      ::RestClient.log = Skydrive.logger
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
lti_skydrive-1.2.2 lib/skydrive/engine.rb
lti_skydrive-1.2.1 lib/skydrive/engine.rb
lti_skydrive-1.2.0 lib/skydrive/engine.rb
lti_skydrive-1.1.0 lib/skydrive/engine.rb
lti_skydrive-1.0.7 lib/skydrive/engine.rb
lti_skydrive-1.0.6 lib/skydrive/engine.rb
lti_skydrive-1.0.5 lib/skydrive/engine.rb
lti_skydrive-1.0.4 lib/skydrive/engine.rb
lti_skydrive-1.0.3 lib/skydrive/engine.rb
lti_skydrive-1.0.2 lib/skydrive/engine.rb
lti_skydrive-1.0.0 lib/skydrive/engine.rb
lti_skydrive-0.1.1 lib/skydrive/engine.rb
lti_skydrive-0.1.0 lib/skydrive/engine.rb