Skip to content

Commit

Permalink
Merge pull request #350 from samvera/revert-349-avoid_autoload_warning
Browse files Browse the repository at this point in the history
Revert "wrap initialization in reloader.to_prepare to avoid autoload deprecation warning in some cases"
  • Loading branch information
elrayle authored Feb 7, 2022
2 parents a24aa0c + 4abb5e6 commit 16176ab
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions config/initializers/authorities.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
Rails.application.reloader.to_prepare do
Qa::Authorities::Local.load_config(File.expand_path("../../authorities.yml", __FILE__))
end
Qa::Authorities::Local.load_config(File.expand_path("../../authorities.yml", __FILE__))
4 changes: 1 addition & 3 deletions config/initializers/linked_data_authorities.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
Rails.application.reloader.to_prepare do
Qa::LinkedData::AuthorityService.load_authorities
end
Qa::LinkedData::AuthorityService.load_authorities
1 change: 0 additions & 1 deletion lib/qa/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
module Qa
VERSION = "5.8.0".freeze
end

0 comments on commit 16176ab

Please sign in to comment.