Sha256: 77127f2cfb25a9d80ea3bf8f3004af5026dfb4684ac6c8a732910dba4457b463

Contents?: true

Size: 1.96 KB

Versions: 2

Compression:

Stored size: 1.96 KB

Contents

require "geoblacklight/engine"

module Geoblacklight
  require 'geoblacklight/bounding_box'
  require 'geoblacklight/catalog_helper_override'
  require 'geoblacklight/config'
  require 'geoblacklight/constants'
  require 'geoblacklight/controller_override'
  require 'geoblacklight/exceptions'
  require 'geoblacklight/geoblacklight_helper_behavior'
  require 'geoblacklight/document_presenter'
  require 'geoblacklight/view_helper_override'
  require 'geoblacklight/item_viewer'
  require 'geoblacklight/solr_document/finder'
  require 'geoblacklight/solr_document/carto_db'
  require 'geoblacklight/solr_document'
  require 'geoblacklight/wms_layer'
  require 'geoblacklight/wms_layer/feature_info_response'
  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/download/hgl_download'
  require 'geoblacklight/metadata'
  require 'geoblacklight/reference'
  require 'geoblacklight/references'
  require 'geoblacklight/routes'
  require 'geoblacklight/search_builder'

  def self.inject!
    CatalogController.send(:include, Geoblacklight::ControllerOverride)
    CatalogController.send(:include, Geoblacklight::CatalogHelperOverride)
    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)
    Blacklight::Routes.send(:include, Geoblacklight::Routes)
  end

  def self.logger
    ::Rails.logger
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geoblacklight-0.11.1 lib/geoblacklight.rb
geoblacklight-0.11.0 lib/geoblacklight.rb