Class: BlacklightRangeLimit::Routes::RangeSearchable

Inherits:
Object
  • Object
show all
Defined in:
lib/blacklight_range_limit/routes/range_searchable.rb

Instance Method Summary collapse

Constructor Details

#initialize(defaults = {}) ⇒ RangeSearchable

Returns a new instance of RangeSearchable.



4
5
6
# File 'lib/blacklight_range_limit/routes/range_searchable.rb', line 4

def initialize(defaults = {})
  @defaults = defaults
end

Instance Method Details

#call(mapper, options = {}) ⇒ Object



8
9
10
11
12
13
# File 'lib/blacklight_range_limit/routes/range_searchable.rb', line 8

def call(mapper, options = {})
  options = @defaults.merge(options)

  mapper.get 'range_limit', action: 'range_limit'
  mapper.get 'range_limit_panel/:id', action: 'range_limit_panel'
end