-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #752 from sul-dlss/694-date-range
Configure the blacklight date range widget
- Loading branch information
Showing
5 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# frozen_string_literal: true | ||
|
||
# This unpleasantness allows us to include the upstream controller before overriding it | ||
# rubocop:disable Rails/DynamicFindBy | ||
spotlight_path = Gem::Specification.find_by_name('blacklight-spotlight').full_gem_path | ||
require_dependency File.join(spotlight_path, 'app/controllers/spotlight/home_pages_controller') | ||
# rubocop:enable Rails/DynamicFindBy | ||
|
||
module Spotlight | ||
# Override the upstream HomePagesController in order to inject range limit behaviors | ||
class HomePagesController | ||
include BlacklightRangeLimit::ControllerOverride | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters