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
Rails HTML Sanitizer is only intended to be used with Rails applications. If you need similar functionality but aren't using Rails, consider using the underlying sanitization library Loofah directly.
if defined?(Rails)
require "paper_trail/frameworks/rails"
thinks Rails is available and then blows up.
The ideal world is to prevent the Rails constant from being loaded somehow, but at a minimum some documentation around this gem still requiring Rails would probably help clarify the dependency, esp since the name "kaminari-sinatra" kind of implies I can use Sinatra and not need Rails.
The text was updated successfully, but these errors were encountered:
This is due to loading
ActionView
which requires Rails.ActionView
claims to not require Rails, but it uses the underlying rails-html-sanitizer gem, which says:This causes issues loading gems like for instance Papertrail as this line:
thinks Rails is available and then blows up.
The ideal world is to prevent the
Rails
constant from being loaded somehow, but at a minimum some documentation around this gem still requiring Rails would probably help clarify the dependency, esp since the name "kaminari-sinatra
" kind of implies I can use Sinatra and not need Rails.The text was updated successfully, but these errors were encountered: