We previously saw how to configure the CatalogController
using the Blacklight config DSL. These configuration patterns work for many different scenarios. However, you may want to provide different a different configuration based on dynamic conditions, such as the route being visited, or the status of a user.
Using Ruby on Rails before_action
as a block in the catalog_controller.rb
can enable you to add these customizations.