Module: Geoblacklight

Defined in:
lib/geoblacklight.rb,
lib/geoblacklight/engine.rb,
lib/geoblacklight/routes.rb,
lib/geoblacklight/version.rb,
lib/geoblacklight/metadata.rb,
lib/geoblacklight/wms_layer.rb,
lib/geoblacklight/constants.rb,
lib/geoblacklight/reference.rb,
lib/geoblacklight/exceptions.rb,
lib/geoblacklight/references.rb,
lib/geoblacklight/item_viewer.rb,
lib/geoblacklight/solr_document.rb,
lib/geoblacklight/controller_override.rb,
lib/geoblacklight/view_helper_override.rb,
lib/geoblacklight/catalog_helper_override.rb,
lib/generators/geoblacklight/install_generator.rb,
lib/geoblacklight/wms_layer/feature_info_response.rb

Defined Under Namespace

Modules: CatalogHelperOverride, Constants, ControllerOverride, Exceptions, Routes, SolrDocument, ViewHelperOverride Classes: Engine, FeatureInfoResponse, Install, ItemViewer, Metadata, Reference, References, WmsLayer

Constant Summary collapse

VERSION =
'0.7.0'

Class Method Summary collapse

Class Method Details

.inject!Object


25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/geoblacklight.rb', line 25

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

.loggerObject


38
39
40
# File 'lib/geoblacklight.rb', line 38

def self.logger
  ::Rails.logger
end