You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works fine on Blacklight 8.3 and earlier. As long as your application is using zeitwerk 2.6.18 or higher, it works fine on Blacklight 8.6.1 as well.
Steps to recreate
Check out the release-8.x branch of the Blacklight git repo
Then create a file app/processors/custom_join.rb with the following content:
# Joins values using configured value or linebreak
class CustomJoin < Blacklight::Rendering::AbstractStep
include ActionView::Helpers::TextHelper
def render
joiner = config.join_with || '<br>'.html_safe
next_step(safe_join(values, joiner))
end
end
Then try to start the application bundle exec rails s.
Note that you get uninitialized constant Blacklight::Rendering (NameError).
The text was updated successfully, but these errors were encountered:
sandbergja
changed the title
Customized rendering pipeline gives an error on Blacklight 8.4 and higher
Customized rendering pipeline gives an error on certain Blacklight 8.x versions with zeitwerk 2.6.18
Nov 6, 2024
sandbergja
added a commit
to pulibrary/orangelight
that referenced
this issue
Nov 6, 2024
This allows us to use Blacklight 8.6.1. On our current verions of zeitwerk,
Blacklight 8.6.1 gives us an uninitialized constant Blacklight::Rendering (NameError)
error when we try to start the application.
Many thanks to @cgalarza for your detective work on this issue!
Helps with #4539, since this will allow us to use 8.6.1, which fixes this bug.
See also projectblacklight/blacklight#3431
This allows us to use Blacklight 8.6.1. On our current verions of zeitwerk,
Blacklight 8.6.1 gives us an uninitialized constant Blacklight::Rendering (NameError)
error when we try to start the application.
Many thanks to @cgalarza for your detective work on this issue!
Helps with #4539, since this will allow us to use 8.6.1, which fixes this bug.
See also projectblacklight/blacklight#3431
Description
If you have customized the rendering pipeline, as described in this wiki page, starting the rails app fails with
uninitialized constant Blacklight::Rendering (NameError)
.This works fine on Blacklight 8.3 and earlier. As long as your application is using zeitwerk 2.6.18 or higher, it works fine on Blacklight 8.6.1 as well.
Steps to recreate
cd
into the.internal_test_app
directory.config/initializers/blacklight.rb
with the following content:app/processors/custom_join.rb
with the following content:bundle exec rails s
.uninitialized constant Blacklight::Rendering (NameError)
.The text was updated successfully, but these errors were encountered: