Sha256: 17fbc55627f9b2a4f9a32e4c442a9efdc15b0a137055d10bababf0cff7638718

Contents?: true

Size: 738 Bytes

Versions: 3

Compression:

Stored size: 738 Bytes

Contents

require 'blacklight'
require 'leaflet-rails'
# move towards removing httparty, replaced by faraday
require 'httparty'
require 'font-awesome-rails'
require 'rails_config'
require 'faraday'
require 'blacklight_range_limit'
require 'nokogiri'

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

3 entries across 3 versions & 1 rubygems

Version Path
geoblacklight-0.4.2 lib/geoblacklight/engine.rb
geoblacklight-0.4.1 lib/geoblacklight/engine.rb
geoblacklight-0.4.0 lib/geoblacklight/engine.rb