Sha256: e1e3c08a212609b71bf4b47beecd3f836a960c2d3f8eb99fb1c52c55ab133793

Contents?: true

Size: 1.34 KB

Versions: 5

Compression:

Stored size: 1.34 KB

Contents

require "geoblacklight/engine"

module Geoblacklight
  require 'geoblacklight/config'
  require 'geoblacklight/constants'
  require 'geoblacklight/controller_override'
  require 'geoblacklight/exceptions'
  require 'geoblacklight/view_helper_override'
  require 'geoblacklight/item_viewer'
  require 'geoblacklight/solr_document'
  require 'geoblacklight/wms_layer'
  require 'geoblacklight/download'
  require 'geoblacklight/download/geojson_download'
  require 'geoblacklight/download/geotiff_download'
  require 'geoblacklight/download/kmz_download'
  require 'geoblacklight/download/shapefile_download'
  require 'geoblacklight/reference'
  require 'geoblacklight/references'
  def self.inject!
    CatalogController.send(:include, Geoblacklight::ControllerOverride)
    CatalogController.send(:include, Geoblacklight::ViewHelperOverride)
    CatalogController.send(:helper, Geoblacklight::ViewHelperOverride) unless
      CatalogController.helpers.is_a?(Geoblacklight::ViewHelperOverride)
    SearchHistoryController.send(:helper, Geoblacklight::ViewHelperOverride) unless
      SearchHistoryController.helpers.is_a?(Geoblacklight::ViewHelperOverride)
    SavedSearchesController.send(:helper, Geoblacklight::ViewHelperOverride) unless
      SavedSearchesController.helpers.is_a?(Geoblacklight::ViewHelperOverride)
  end

  def self.logger
    ::Rails.logger
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
geoblacklight-0.3.4 lib/geoblacklight.rb
geoblacklight-0.3.3 lib/geoblacklight.rb
geoblacklight-0.3.2 lib/geoblacklight.rb
geoblacklight-0.3.1 lib/geoblacklight.rb
geoblacklight-0.3.0 lib/geoblacklight.rb