Sha256: f9b7e9199d6bcc15f6b6b2331faec52cfb879b03d79a1c431af3e1af70090f86

Contents?: true

Size: 1.69 KB

Versions: 10

Compression:

Stored size: 1.69 KB

Contents

require 'active_support/dependencies'
require 'geoblacklight/engine'

module Geoblacklight
  require 'geoblacklight/bounding_box'
  require 'geoblacklight/catalog_helper_override'
  require 'geoblacklight/constants'
  require 'geoblacklight/controller_override'
  require 'geoblacklight/exceptions'
  require 'geoblacklight/geoblacklight_helper_behavior'
  require 'geoblacklight/view_helper_override'
  require 'geoblacklight/item_viewer'
  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'

  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)
  end

  def self.logger
    ::Rails.logger
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
geoblacklight-1.2.0 lib/geoblacklight.rb
geoblacklight-1.1.2 lib/geoblacklight.rb
geoblacklight-1.1.0 lib/geoblacklight.rb
geoblacklight-1.0.3 lib/geoblacklight.rb
geoblacklight-1.0.2 lib/geoblacklight.rb
geoblacklight-1.0.1 lib/geoblacklight.rb
geoblacklight-1.0.0 lib/geoblacklight.rb
geoblacklight-1.0.0.pre3 lib/geoblacklight.rb
geoblacklight-1.0.0.pre2 lib/geoblacklight.rb
geoblacklight-1.0.0.pre1 lib/geoblacklight.rb