Sha256: 43879d0949e92c7bc6307922c8a2d733d57dce64ac22a8de6d3b859f344b3c32

Contents?: true

Size: 682 Bytes

Versions: 5

Compression:

Stored size: 682 Bytes

Contents

require 'blacklight'
require 'leaflet-rails'
require 'font-awesome-rails'
require 'rails_config'
require 'faraday'
require 'blacklight_range_limit'
require 'nokogiri'
require 'coderay'

module Geoblacklight
  class Engine < ::Rails::Engine

    Blacklight::Configuration.default_values[:view].split.partials = ['index']
    Blacklight::Configuration.default_values[:view].delete_field('list')
    # GeoblacklightHelper is needed by all helpers, so we inject it
    # into action view base here.
    initializer 'geoblacklight.helpers' do |app|
      ActionView::Base.send :include, GeoblacklightHelper
    end

    config.to_prepare do
      Geoblacklight.inject!
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
geoblacklight-0.9.2 lib/geoblacklight/engine.rb
geoblacklight-0.9.1 lib/geoblacklight/engine.rb
geoblacklight-0.9.0 lib/geoblacklight/engine.rb
geoblacklight-0.8.0 lib/geoblacklight/engine.rb
geoblacklight-0.7.1 lib/geoblacklight/engine.rb