Sha256: 281fd9e0fc8b573e442d51c042d666b6fcaa1157ac354646ede35b185a7653ee
Contents?: true
Size: 544 Bytes
Versions: 10
Compression:
Stored size: 544 Bytes
Contents
module ActionDispatch::Routing class Mapper # example # blacklight_for :catalog # blacklight_for :catalog, :dashboard # blacklight_for :catalog, except: [ :saved_searches ] # blacklight_for :catalog, only: [ :saved_searches, :solr_document ] # blacklight_for :catalog, constraints: {id: /[0-9]+/ } def blacklight_for(*resources) options = resources.extract_options! resources.map!(&:to_sym) Blacklight::Routes.new(self, options.merge(resources: resources)).draw end end end
Version data entries
10 entries across 10 versions & 1 rubygems