Module: BlacklightFacetExtras

Defined in:
lib/blacklight_facet_extras.rb,
lib/blacklight_facet_extras/engine.rb,
lib/blacklight_facet_extras/version.rb,
lib/blacklight_facet_extras/hierarchy.rb,
lib/blacklight_facet_extras/facet_item.rb

Overview

BlacklightFacetExtras

Defined Under Namespace

Modules: ControllerExtension, Filter, Hierarchy, Pivot, Query, Range, RouteSets, Tag, ViewHelperExtension Classes: Engine, FacetItem

Constant Summary collapse

VERSION =
self.version

Class Method Summary collapse

Class Method Details

.inject!Object



26
27
# File 'lib/blacklight_facet_extras.rb', line 26

def self.inject!
end

.omit_injectObject



24
# File 'lib/blacklight_facet_extras.rb', line 24

def self.omit_inject ; @omit_inject ; end

.omit_inject=(value) ⇒ Object



20
21
22
23
# File 'lib/blacklight_facet_extras.rb', line 20

def self.omit_inject=(value)
  value = Hash.new(true) if value == true
  @omit_inject = value      
end

.safe_arr_add(array, element) ⇒ Object

Add element to array only if it’s not already there



30
31
32
# File 'lib/blacklight_facet_extras.rb', line 30

def self.safe_arr_add(array, element)
  array << element unless array.include?(element)
end

.versionObject



3
4
5
# File 'lib/blacklight_facet_extras/version.rb', line 3

def self.version
  @version ||= File.read(File.join(File.dirname(__FILE__), '..', '..', 'VERSION')).chomp
end