class Blacklight::Marc::Routes::MarcViewable

Public Class Methods

new(defaults = {}) click to toggle source
# File lib/blacklight/marc/routes/marc_viewable.rb, line 6
def initialize(defaults = {})
  @defaults = defaults
end

Public Instance Methods

call(mapper, options = {}) click to toggle source
# File lib/blacklight/marc/routes/marc_viewable.rb, line 10
def call(mapper, options = {})
  options = @defaults.merge(options)

  mapper.member do
    mapper.match 'librarian_view', via: :get
  end
end