module BlacklightRangeLimit::RouteSets
This module is monkey-patch included into Blacklight::Routes, so that map_resource will route to catalog#range_limit, for our action that fetches and returns range segments – that action is also monkey patched into (eg) CatalogController.
Protected Instance Methods
range_limit(primary_resource)
click to toggle source
Add route for (eg) catalog/range_limit, pointing to the range_limit
method we monkey patch into (eg) CatalogController.
# File lib/blacklight_range_limit/route_sets.rb, line 23 def range_limit(primary_resource) add_routes do |options| get "#{primary_resource}/range_limit" => "#{primary_resource}#range_limit" end end