Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HYDRA-428 moving definition of require_plugin_dependency into hydra-h…
…ead.rb
- Loading branch information
1 parent
0a84694
commit e11b640
Showing
3 changed files
with
11 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1 @@ | ||
# Include hook code here | ||
require "solrizer" | ||
require "solrizer-fedora" | ||
|
||
module ActiveSupport::Dependencies::Loadable | ||
# Provides a hook for intercepting calls to require_dependency that are referencing other plugins | ||
def require_plugin_dependency(dependency_path) | ||
modified_path = dependency_path | ||
p "requiring #{modified_path}" | ||
require_dependency modified_path | ||
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
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