Sha256: a426303c63e73b3f5d9466a47a3ccbbdbdd1e06f707634ad1a829085de148884

Contents?: true

Size: 483 Bytes

Versions: 5

Compression:

Stored size: 483 Bytes

Contents

# frozen_string_literal: true

require "rack/contrib/jsonp"

module Calagator
  class Engine < ::Rails::Engine
    isolate_namespace Calagator

    config.middleware.use Rack::JSONP

    config.assets.precompile += %w[
      *.png
      *.gif
      calagator/errors.css
      leaflet.js
      leaflet_google_layer.js
      site-icon.png
      spinner.gif
      tag_icons/*
      leaflet
    ]

    config.after_initialize do
      Calagator.configure_search_engine
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
koalagator-3.0.0 lib/calagator/engine.rb
koalagator-2.1.1 lib/calagator/engine.rb
koalagator-2.1.0 lib/calagator/engine.rb
calagator2-2.1.1 lib/calagator/engine.rb
calagator2-2.1.0 lib/calagator/engine.rb