Skip to content

Commit

Permalink
Include the BlacklightHelper after initializing
Browse files Browse the repository at this point in the history
Because autoloading is not supported during the initialization step in rails any more.
Fixes #2438
  • Loading branch information
jcoyne authored and cbeer committed Apr 7, 2021
1 parent ed73d69 commit 8259ca0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/blacklight/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ class Engine < Rails::Engine
# BlacklightHelper is needed by all helpers, so we inject it
# into action view base here.
initializer 'blacklight.helpers' do
ActionView::Base.include BlacklightHelper
config.after_initialize do
ActionView::Base.include BlacklightHelper
end
end

# This makes our rake tasks visible.
Expand Down

0 comments on commit 8259ca0

Please sign in to comment.