Class: BlacklightRangeLimit::Routes::RangeSearchable
- Inherits:
-
Object
- Object
- BlacklightRangeLimit::Routes::RangeSearchable
- Defined in:
- lib/blacklight_range_limit/routes/range_searchable.rb
Instance Method Summary collapse
- #call(mapper, options = {}) ⇒ Object
-
#initialize(defaults = {}) ⇒ RangeSearchable
constructor
A new instance of RangeSearchable.
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, = {}) = @defaults.merge() mapper.get 'range_limit', action: 'range_limit' mapper.get 'range_limit_panel/:id', action: 'range_limit_panel' end |